diff options
Diffstat (limited to 'tpl/math/math_test.go')
-rw-r--r-- | tpl/math/math_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tpl/math/math_test.go b/tpl/math/math_test.go index d45a2aace..cc4fe31eb 100644 --- a/tpl/math/math_test.go +++ b/tpl/math/math_test.go @@ -879,3 +879,14 @@ func TestToRadians(t *testing.T) { c.Assert(result, qt.Equals, test.expect) } } + +func TestMaxInt64(t *testing.T) { + t.Parallel() + ns := New(nil) + + var want int64 = 9223372036854775807 + got := ns.MaxInt64() + if want != got { + t.Errorf("want %d, got %d", want, got) + } +} |