Skip to content

Commit

Permalink
Add two more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Dec 3, 2022
1 parent 7fac6e1 commit 13a37e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/test/stdlib/number.test.gr
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ assert Number.parse("-3/-9") == Ok(1/3)
assert Number.parse("0x3/-9") == Ok(-1/3)
assert Number.parse("3/-0x9") == Ok(-1/3)
assert Number.parse("9223372036854775808/27_670_116_110_564_327_424") == Ok(1/3)
assert Number.parse("1/2/") == Err("Invalid digit in input")
assert Number.parse("1/") == Err("Invalid digit in input")

// Number.sign
assert Number.sign(-10000) == -1
Expand Down

0 comments on commit 13a37e3

Please sign in to comment.