strconv — validation proof

Go’s own strconv test suite, converted to C# by go2cs, built against the converted standard library, run under the Go-semantics test host, and compared verdict for verdict against a clean go test -json baseline of the same sources. This page is generated by the converter from that comparison — it is the evidence behind the strconv row in Validated Test Packages.

Validated 2026-08-04 · converter f6e9c0cf0

55 matched · 11 disclosed — Go 1.23.1, windows/amd64, converted package src/core/strconv.

Both runtimes skip 1 of the matched tests identically.

Verdicts

Test go test go2cs
TestAllocationsFromBytes pass fail (disclosed)
TestAllocationsFromBytes/AppendQuote pass fail (disclosed)
TestAllocationsFromBytes/AppendQuoteToASCII pass fail (disclosed)
TestAllocationsFromBytes/AppendQuoteToGraphic pass fail (disclosed)
TestAllocationsFromBytes/Atoi pass fail (disclosed)
TestAllocationsFromBytes/CanBackquote pass fail (disclosed)
TestAllocationsFromBytes/ParseBool pass fail (disclosed)
TestAllocationsFromBytes/ParseComplex pass fail (disclosed)
TestAllocationsFromBytes/ParseFloat pass fail (disclosed)
TestAllocationsFromBytes/ParseInt pass fail (disclosed)
TestAllocationsFromBytes/ParseUint pass fail (disclosed)
TestAppendBool pass pass
TestAtof pass pass
TestAtofRandom pass pass
TestAtofSlow pass pass
TestAtoi pass pass
TestCanBackquote pass pass
TestCountMallocs skip skip
TestDecimalRound pass pass
TestDecimalRoundedInteger pass pass
TestDecimalShift pass pass
TestErrorPrefixes pass pass
TestFormatBool pass pass
TestFormatComplex pass pass
TestFormatComplexInvalidBitSize pass pass
TestFormatFloatInvalidBitSize pass pass
TestFormatUintVarlen pass pass
TestFp pass pass
TestFtoa pass pass
TestFtoaPowersOfTwo pass pass
TestFtoaRandom pass pass
TestIsGraphic pass pass
TestIsPrint pass pass
TestItoa pass pass
TestMulByLog10Log2 pass pass
TestMulByLog2Log10 pass pass
TestNumError pass pass
TestNumErrorUnwrap pass pass
TestParseBool pass pass
TestParseComplex pass pass
TestParseComplexIncorrectBitSize pass pass
TestParseFloatIncorrectBitSize pass pass
TestParseFloatPrefix pass pass
TestParseInt pass pass
TestParseInt32 pass pass
TestParseInt64 pass pass
TestParseInt64Base pass pass
TestParseIntBase pass pass
TestParseIntBitSize pass pass
TestParseUint pass pass
TestParseUint32 pass pass
TestParseUint64 pass pass
TestParseUint64Base pass pass
TestParseUintBase pass pass
TestParseUintBitSize pass pass
TestQuote pass pass
TestQuoteRune pass pass
TestQuoteRuneToASCII pass pass
TestQuoteRuneToGraphic pass pass
TestQuoteToASCII pass pass
TestQuoteToGraphic pass pass
TestRoundTrip pass pass
TestRoundTrip32 pass pass
TestUitoa pass pass
TestUnquote pass pass
TestUnquoteInvalidUTF8 pass pass

Disclosed divergences

A disclosed divergence is a specific Go assertion the managed CLR provably cannot satisfy — not a skipped test and not a tolerance. Each one is pinned by exact failure signature in the package’s hand-owned go2cs_test_disclosures.json; a disclosed test that fails any other way is still a hard mismatch.

Test Class Pinned reason
TestAllocationsFromBytes aggregate no failure text of its own — the roll-up of this test’s disclosed subtests
TestAllocationsFromBytes/AppendQuote alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run before the pre-sized append
TestAllocationsFromBytes/AppendQuoteToASCII alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run before the pre-sized append
TestAllocationsFromBytes/AppendQuoteToGraphic alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run before the pre-sized append
TestAllocationsFromBytes/Atoi alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/CanBackquote alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/ParseBool alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/ParseComplex alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/ParseFloat alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/ParseInt alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run
TestAllocationsFromBytes/ParseUint alloc-profile want-zero AllocsPerRun assert: the closure’s string([]byte) argument is proven non-escaping by Go’s compiler and stays on the stack; the managed model must materialize an @string per run

Excluded declarations

Declarations filtered from both sides of the comparison, and therefore not claimed above: Benchmark, Fuzz and Example declarations the converted host does not execute, plus any test requiring a capability the managed runtime does not provide — a testing member the host has not implemented, or a platform behavior it provably cannot reproduce. Each is named with the capability it needs.