summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 21:00:13 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 21:48:22 -0700
commit3516254a492758dd414b271b85a1603fd53cebad (patch)
treedbdd7848fdd498e74bcd2c6ca4fc13eb7de91dde /compat
parent48ca9982d8adbc402b750ce43a8a2a03270a98d1 (diff)
compat/json: Don't use log.Fatal
Diffstat (limited to 'compat')
-rw-r--r--compat/json/borrowed_encode_test.go3
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 {