math/bits — validation proof

Go’s own math/bits 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 math/bits row in Validated Test Packages.

Validated 2026-08-04 · converter f6e9c0cf0

26 matched · 0 disclosed — Go 1.23.1, windows/amd64, converted package src/core/math/bits.

Verdicts

Test go test go2cs
TestAdd64OverflowPanic pass pass
TestAddSubUint pass pass
TestAddSubUint32 pass pass
TestAddSubUint64 pass pass
TestDiv32PanicOverflow pass pass
TestDiv32PanicZero pass pass
TestDiv64PanicOverflow pass pass
TestDiv64PanicZero pass pass
TestDivPanicOverflow pass pass
TestDivPanicZero pass pass
TestLeadingZeros pass pass
TestLen pass pass
TestMulDiv pass pass
TestMulDiv32 pass pass
TestMulDiv64 pass pass
TestOnesCount pass pass
TestRem32 pass pass
TestRem32Overflow pass pass
TestRem64 pass pass
TestRem64Overflow pass pass
TestReverse pass pass
TestReverseBytes pass pass
TestRotateLeft pass pass
TestSub64OverflowPanic pass pass
TestTrailingZeros pass pass
TestUintSize pass pass

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.