mirror of https://github.com/spf13/cast.git
chore: add failing test with string float numbers
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
5959a756af
commit
c41510b332
|
@ -56,6 +56,8 @@ func createNumberTestSteps(zero, one, eight, eightnegative, eightpoint31, eightp
|
||||||
{uint64(8), eight, false},
|
{uint64(8), eight, false},
|
||||||
{float32(8.31), eightpoint31_32, false},
|
{float32(8.31), eightpoint31_32, false},
|
||||||
{float64(8.31), eightpoint31, false},
|
{float64(8.31), eightpoint31, false},
|
||||||
|
{"8.31", eightpoint31_32, false},
|
||||||
|
{"8.31", eightpoint31, false},
|
||||||
{true, one, false},
|
{true, one, false},
|
||||||
{false, zero, false},
|
{false, zero, false},
|
||||||
{"8", eight, false},
|
{"8", eight, false},
|
||||||
|
@ -67,6 +69,8 @@ func createNumberTestSteps(zero, one, eight, eightnegative, eightpoint31, eightp
|
||||||
{int64(-8), eightnegative, isUint},
|
{int64(-8), eightnegative, isUint},
|
||||||
{float32(-8.31), eightpoint31negative_32, isUint},
|
{float32(-8.31), eightpoint31negative_32, isUint},
|
||||||
{float64(-8.31), eightpoint31negative, isUint},
|
{float64(-8.31), eightpoint31negative, isUint},
|
||||||
|
{"-8.31", eightpoint31negative_32, isUint},
|
||||||
|
{"-8.31", eightpoint31negative, isUint},
|
||||||
{"-8", eightnegative, isUint},
|
{"-8", eightnegative, isUint},
|
||||||
{jeight, eight, false},
|
{jeight, eight, false},
|
||||||
{jminuseight, eightnegative, isUint},
|
{jminuseight, eightnegative, isUint},
|
||||||
|
|
Loading…
Reference in New Issue