From 8c0513a04ff3870f57bde230507aaa8c6b7e6e86 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 16 Aug 2022 00:15:57 -0600 Subject: Get borrowed_decode_test.go passing --- compat/json/borrowed_decode_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compat/json/borrowed_decode_test.go') diff --git a/compat/json/borrowed_decode_test.go b/compat/json/borrowed_decode_test.go index 4b84718..4b9d0cb 100644 --- a/compat/json/borrowed_decode_test.go +++ b/compat/json/borrowed_decode_test.go @@ -10,7 +10,6 @@ import ( "errors" "fmt" "image" - "io" // MODIFIED "math" "math/big" "net" @@ -19,8 +18,6 @@ import ( "strings" "testing" "time" - - "git.lukeshu.com/go/lowmemjson" // MODIFIED ) type T struct { @@ -1093,7 +1090,7 @@ func equalError(a, b error) bool { func TestUnmarshal(t *testing.T) { for i, tt := range unmarshalTests { - scan := lowmemjson.ReEncoder{Out: io.Discard} // MODIFIED + var scan scanner in := []byte(tt.in) if err := checkValid(in, &scan); err != nil { if !equalError(err, tt.err) { -- cgit v1.2.3-2-g168b