- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNodeNoModify (0.19 sec)
-
src/go/format/format_test.go
t.Fatal("Node failed:", err) } diff(t, buf.Bytes(), src) } // Node is documented to not modify the AST. // Test that it is so even when numbers are normalized. func TestNodeNoModify(t *testing.T) { const ( src = "package p\n\nconst _ = 0000000123i\n" golden = "package p\n\nconst _ = 123i\n" ) fset := token.NewFileSet()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:46 UTC 2021 - 4.5K bytes - Viewed (0)