diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interpretation/README.md | 2 | ||||
-rw-r--r-- | tests/interpretation/bool.pom | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/tests/interpretation/README.md b/tests/interpretation/README.md index 136142b..1691757 100644 --- a/tests/interpretation/README.md +++ b/tests/interpretation/README.md @@ -2,7 +2,7 @@ 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, +`int.pom`, `uint.pom`, `float.pom`, `bool.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 diff --git a/tests/interpretation/bool.pom b/tests/interpretation/bool.pom new file mode 100644 index 0000000..1911cfc --- /dev/null +++ b/tests/interpretation/bool.pom @@ -0,0 +1,20 @@ +[good] +a.a = yes +a.b = "true" +b.a = no +b.b = "off" +c.a = on +c.b = "yes" +d.a = off +d.b = "false" +e.a = true +e.b = "on" +f.a = false +f.b = "no" + +[bad] +caps = YES +leading_space = " yes" +trailing_space = "yes " +fake = untrue +fake2 = disabled |