diff options
Diffstat (limited to 'site/tests/interpretation.html')
-rw-r--r-- | site/tests/interpretation.html | 35 |
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> |