diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2022-08-14 20:52:33 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-17 02:02:47 -0600 |
commit | 28dc29b7b05dc9c7ea1cec577963757f75faa601 (patch) | |
tree | ce7e0c4ddfeed8e2db99bf72383e71fe7fef4f20 /test_export.go | |
parent | 35997d235f3bac7c3f9bcd4b8d2b26b0d88dc387 (diff) |
Get the new borrowed tests passing
Diffstat (limited to 'test_export.go')
-rw-r--r-- | test_export.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test_export.go b/test_export.go index ccac2b2..76d29d2 100644 --- a/test_export.go +++ b/test_export.go @@ -5,12 +5,14 @@ package lowmemjson import ( + "io" + "git.lukeshu.com/go/lowmemjson/internal" ) func init() { - internal.EncodeStringFromString = encodeStringFromString - internal.EncodeStringFromBytes = encodeStringFromBytes + internal.EncodeStringFromString = func(w io.Writer, s string) { encodeStringFromString(w, nil, s) } + internal.EncodeStringFromBytes = func(w io.Writer, s []byte) { encodeStringFromBytes(w, nil, s) } } var parseTag = internal.ParseTag |