summaryrefslogtreecommitdiff
path: root/site/tests/interpretation.html
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-23 14:26:18 -0400
committerpommicket <pommicket@gmail.com>2025-09-23 14:26:18 -0400
commitee57036c9cfdff27a81a38a9c5abc3b631f3a83c (patch)
tree812ad4393c68b0575c4010d9b25d39e20ceefb1c /site/tests/interpretation.html
parent6ae91130c7c2ff1c11ecfe5798d8037954a4d570 (diff)
POM website
Diffstat (limited to 'site/tests/interpretation.html')
-rw-r--r--site/tests/interpretation.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/site/tests/interpretation.html b/site/tests/interpretation.html
new file mode 100644
index 0000000..0bc4a5c
--- /dev/null
+++ b/site/tests/interpretation.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta content="width=device-width,initial-scale=1" name="viewport">
+ <title>POM interpretation tests</title>
+ <link rel="icon" href="/icon.png">
+</head>
+<body>
+<p>
+ <a href="/index.html">POM homepage</a> · <a href="/tests/index.html">POM tests</a>
+</p>
+<h2>Interpretation tests for POM</h2>
+<p>
+ These tests are found in the <code>tests/location</code> directory of the main POM repository.
+</p>
+<p>
+ These tests check that booleans, numbers, floats, and lists are interpreted correctly.
+</p>
+<ul>
+ <li>
+ int.pom, uint.pom, float.pom, bool.pom — These files contain two sections,
+ <code>[good]</code> and <code>[bad]</code>.
+ The keys in <code>good</code> are in pairs <i>k</i>.a and <i>k</i>.b. Their values must
+ parse to the same int/uint/float/boolean as each other.
+ The values in <code>bad</code> are all invalid int/uint/float/booleans, and parsing them should
+ return an error.
+ </li>
+ <li>
+ list.pom — The keys in this file are in pairs <i>k</i>.list and <i>k</i>.sep.
+ <i>k</i>.list is a POM list, and <i>k</i>.sep is the concatenation of <i>x</i><code>;</code> for each entry
+ <i>x</i> in the list (none of the entries have `;` in them, so this representation is
+ unambiguous).
+ </li>
+</ul>