Skip to content

Commit 00f74a4

Browse files
committed
Fix gofmt errors for uppercase exponents
Go 1.13 unified exponents to be lowercase https://golang.org/doc/go1.13#gofmt
1 parent e0d210c commit 00f74a4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

grumpy-runtime-src/runtime/complex_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ func TestComplexPos(t *testing.T) {
412412
cases := []invokeTestCase{
413413
{args: wrapArgs(complex(0, 0)), want: NewComplex(complex(0, 0)).ToObject()},
414414
{args: wrapArgs(complex(42, -0.1)), want: NewComplex(complex(42, -0.1)).ToObject()},
415-
{args: wrapArgs(complex(-1.2, 375E+2)), want: NewComplex(complex(-1.2, 37500)).ToObject()},
415+
{args: wrapArgs(complex(-1.2, 375e+2)), want: NewComplex(complex(-1.2, 37500)).ToObject()},
416416
{args: wrapArgs(complex(5, math.NaN())), want: NewComplex(complex(5, math.NaN())).ToObject()},
417417
{args: wrapArgs(complex(math.Inf(1), 0.618)), want: NewComplex(complex(math.Inf(1), 0.618)).ToObject()},
418418
}

grumpy-runtime-src/runtime/float_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func TestFloatRepr(t *testing.T) {
307307
{args: wrapArgs(1e+6), want: NewStr("1000000.0").ToObject()},
308308
{args: wrapArgs(1e+15), want: NewStr("1000000000000000.0").ToObject()},
309309
{args: wrapArgs(1e+16), want: NewStr("1e+16").ToObject()},
310-
{args: wrapArgs(1E16), want: NewStr("1e+16").ToObject()},
310+
{args: wrapArgs(1e16), want: NewStr("1e+16").ToObject()},
311311
{args: wrapArgs(1e-6), want: NewStr("1e-06").ToObject()},
312312
{args: wrapArgs(math.Inf(1)), want: NewStr("inf").ToObject()},
313313
{args: wrapArgs(math.Inf(-1)), want: NewStr("-inf").ToObject()},

0 commit comments

Comments
 (0)