github.com/pmezard/go-difflib/difflib — validation proof
Go’s own github.com/pmezard/go-difflib/difflib 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, and written beside the conversion: it is not a row of go2cs’s standard-library roster.
Validated 2026-11-22
14 matched · 0 disclosed — Go 1.26.11, linux/amd64, converted package
src/github.com/pmezard/go-difflib/difflib.
Measured at Release (tiered JIT off), oracle go version go1.26.11 linux/amd64, with no controlling terminal.
Both sides were built with -tags purego,safe,noasm; the conversion also takes math_big_pure_go, which selects math/big’s pure-Go arithmetic over its assembly.
Input digest sha256-bb972756ce19f41fbb8497588a64d288d2e9f202e35a7a85ff398ccb24779468: the package’s Go sources, conversion options, target and converter, as its
project records them (GoInputDigest).
Verdicts
| Test | go test |
go2cs |
|---|---|---|
TestGetOptCodes |
pass | pass |
TestGroupedOpCodes |
pass | pass |
TestOmitFilenames |
pass | pass |
TestOutputFormatNoTrailingTabOnEmptyFiledate |
pass | pass |
TestOutputFormatRangeFormatContext |
pass | pass |
TestOutputFormatRangeFormatUnified |
pass | pass |
TestOutputFormatTabDelimiter |
pass | pass |
TestSFBugsComparingEmptyLists |
pass | pass |
TestSFBugsRatioForNullSeqn |
pass | pass |
TestSequenceMatcherRatio |
pass | pass |
TestSplitLines |
pass | pass |
TestWithAsciiBJunk |
pass | pass |
TestWithAsciiOnDelete |
pass | pass |
TestWithAsciiOneInsert |
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.
- BenchmarkSplitLines100 (benchmark): benchmark execution is deferred to Phase 4D
- BenchmarkSplitLines10000 (benchmark): benchmark execution is deferred to Phase 4D
- ExampleGetContextDiffCode (example): example execution is deferred to Phase 4D
- ExampleGetContextDiffString (example): example execution is deferred to Phase 4D
- ExampleGetUnifiedDiffCode (example): example execution is deferred to Phase 4D
Go’s tests ran without vet
Go’s own go test of this package fails at the vet checks it runs before any test, not at a test, so
the go test baseline ran with -vet=off (-test-oracle-vet-off), and the converted side is compared
with it test by test. What vet reports, by analyzer:
- tests: difflib_test.go:105:1: ExampleGetUnifiedDiffCode refers to unknown identifier: GetUnifiedDiffCode
- tests: difflib_test.go:138:1: ExampleGetContextDiffCode refers to unknown identifier: GetContextDiffCode