Skip to content

Commit

Permalink
Add comment about int64 being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed May 24, 2024
1 parent 5194334 commit b87e1af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ Untested and implementation-defined behaviour
This only tests behaviour that's should be true for every encoder implementing
TOML; a few things are left up to implementations, and are not tested here.

- TOML does not mandate a specific integer or float size, but recommends int64
and float64, which is what this tests. You'll have to manually -skip these
tests if your implementation doesn't support it.

- Many values can be expressed in more than one way: for example `0xff` and
`255` are equal, as are `0.0` and `-0.0`.

Expand Down
4 changes: 3 additions & 1 deletion tests/valid/integer/long.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
int64-max = 9223372036854775807
# int64 "should" be supported, but is not mandatory. It's fine to skip this
# test.
int64-max = 9223372036854775807
int64-max-neg = -9223372036854775808

0 comments on commit b87e1af

Please sign in to comment.