diff options
author | pommicket <pommicket@gmail.com> | 2025-09-15 18:11:33 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-15 18:11:33 -0400 |
commit | ca4187225061a9dce2abac30e8e760cc75f4c8fa (patch) | |
tree | cc49b52375d293389713114806a313a2b96dca00 | |
parent | a0f8eb813c515f09edab5b16ce9366b010b10cbc (diff) |
bool 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 |