diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-10 21:00:13 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-10 21:48:22 -0700 |
commit | 3516254a492758dd414b271b85a1603fd53cebad (patch) | |
tree | dbdd7848fdd498e74bcd2c6ca4fc13eb7de91dde | |
parent | 48ca9982d8adbc402b750ce43a8a2a03270a98d1 (diff) |
compat/json: Don't use log.Fatal
-rw-r--r-- | compat/json/borrowed_encode_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compat/json/borrowed_encode_test.go b/compat/json/borrowed_encode_test.go index 999c694..d602934 100644 --- a/compat/json/borrowed_encode_test.go +++ b/compat/json/borrowed_encode_test.go @@ -10,7 +10,6 @@ import ( "bytes" "encoding" "fmt" - "log" "math" "reflect" "regexp" @@ -1085,7 +1084,7 @@ func TestMarshalFloat(t *testing.T) { s := fmt.Sprintf("%c%se%d", sign, digits[:i], exp) f, err := strconv.ParseFloat(s, bits) if err != nil { - log.Fatal(err) + t.Fatal(err) // MODIFIED: changed from log.Fatal to t.Fatal } next := math.Nextafter if bits == 32 { |