tpl/math: Add MaxInt64 function

Closes #13693
This commit is contained in:
Joe Mooring
2025-05-06 11:57:03 -07:00
committed by Bjørn Erik Pedersen
parent d70f828e2b
commit 325a0dba63
3 changed files with 23 additions and 0 deletions

View File

@@ -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)
}
}