diff --git a/tests/core/math/test_core_math.odin b/tests/core/math/test_core_math.odin index 2a752e366..8d51c9da0 100644 --- a/tests/core/math/test_core_math.odin +++ b/tests/core/math/test_core_math.odin @@ -2,6 +2,7 @@ package test_core_math import "core:math" +import "core:strconv" import "core:testing" @test @@ -1229,4 +1230,37 @@ test_large_tan :: proc(t: ^testing.T) { f2 := math.tan(vf[i] + large) testing.expectf(t, close(t, f1, f2), "math.tan(%.15g) = %.15g, want %.15g", vf[i]+large, f2, f1) } -} \ No newline at end of file +} + +@test +test_count_digits :: proc(t: ^testing.T) { + _run_test :: proc(t: ^testing.T, $base: int) { + buf: [64]u8 + for n in 0..