Skip to content

Commit

Permalink
Add extra number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed May 13, 2024
1 parent 58abd2f commit 5ab85a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions excellent/types/number_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func TestToXNumberAndInteger(t *testing.T) {
{types.NewXText("12345678901234567890"), types.RequireXNumberFromString("12345678901234567890"), 0, true}, // out of int range
{types.NewXText("1E100"), types.XNumberZero, 0, true}, // scientific notation not allowed
{types.NewXText("1e100"), types.XNumberZero, 0, true}, // scientific notation not allowed
{types.NewXText("234."), types.XNumberZero, 0, true},
{types.NewXText("+1800567890"), types.XNumberZero, 0, true},
}

env := envs.NewBuilder().Build()
Expand Down

0 comments on commit 5ab85a0

Please sign in to comment.