summaryrefslogtreecommitdiff
path: root/tests/interpretation/README.md
blob: b263e057197022bbe794cd78056bb79a1361fb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Interpretation tests

These tests check that booleans, numbers, floats, and lists are interpreted correctly.

`int.pom`, `uint.pom`, `float.pom`, `boolean.pom` — These files contain two sections,
`[good]` and `[bad]`. The keys in `good` are in pairs `k.a` and `k.b`. Their values must
parse to the same int/uint/float/boolean as each other.
The values in `bad` are all invalid int/uint/float/booleans, and parsing them should
return an error.

`list.pom` — The keys in this file are in pairs `k.list` and `k.sep`.
`k.list` is a POM list, and `k.sep` is the concatenation of `x;` for each entry
`x` in the list (none of the entries have `;` in them, so this representation is
unambiguous).