blob: 0bc4a5c49b16a4e5d3ca53697a4a43591b024f5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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>
|