From c41510b3324d53ef9cee233e50ada8ecfafd8336 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Sun, 5 Feb 2023 23:14:28 +0100 Subject: [PATCH] chore: add failing test with string float numbers Signed-off-by: Mark Sagi-Kazar --- cast_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cast_test.go b/cast_test.go index dc8ba14..afb7d1b 100644 --- a/cast_test.go +++ b/cast_test.go @@ -56,6 +56,8 @@ func createNumberTestSteps(zero, one, eight, eightnegative, eightpoint31, eightp {uint64(8), eight, false}, {float32(8.31), eightpoint31_32, false}, {float64(8.31), eightpoint31, false}, + {"8.31", eightpoint31_32, false}, + {"8.31", eightpoint31, false}, {true, one, false}, {false, zero, false}, {"8", eight, false}, @@ -67,6 +69,8 @@ func createNumberTestSteps(zero, one, eight, eightnegative, eightpoint31, eightp {int64(-8), eightnegative, isUint}, {float32(-8.31), eightpoint31negative_32, isUint}, {float64(-8.31), eightpoint31negative, isUint}, + {"-8.31", eightpoint31negative_32, isUint}, + {"-8.31", eightpoint31negative, isUint}, {"-8", eightnegative, isUint}, {jeight, eight, false}, {jminuseight, eightnegative, isUint},