Skip to content

Commit b87e1af

Browse files
committedMay 24, 2024··
Add comment about int64 being optional
1 parent 5194334 commit b87e1af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎README.md

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ Untested and implementation-defined behaviour
200200
This only tests behaviour that's should be true for every encoder implementing
201201
TOML; a few things are left up to implementations, and are not tested here.
202202

203+
- TOML does not mandate a specific integer or float size, but recommends int64
204+
and float64, which is what this tests. You'll have to manually -skip these
205+
tests if your implementation doesn't support it.
206+
203207
- Many values can be expressed in more than one way: for example `0xff` and
204208
`255` are equal, as are `0.0` and `-0.0`.
205209

‎tests/valid/integer/long.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
int64-max = 9223372036854775807
1+
# int64 "should" be supported, but is not mandatory. It's fine to skip this
2+
# test.
3+
int64-max = 9223372036854775807
24
int64-max-neg = -9223372036854775808

0 commit comments

Comments
 (0)
Please sign in to comment.