summaryrefslogtreecommitdiff
path: root/tests/location
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-08 22:03:14 -0400
committerpommicket <pommicket@gmail.com>2025-09-08 22:03:14 -0400
commitf63e631a8e110c7b0a54b8b55516ad3c2d75b626 (patch)
tree5e9199cfab18a330a31013ec2cdcef22f38dce17 /tests/location
parenta43c3e078f5b49be7e662b650f61d23aaf6aae9a (diff)
Add more tests
Diffstat (limited to 'tests/location')
-rw-r--r--tests/location/README.md8
-rw-r--r--tests/location/basic.locations.pom3
-rw-r--r--tests/location/basic.pom6
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/location/README.md b/tests/location/README.md
new file mode 100644
index 0000000..caa8b6a
--- /dev/null
+++ b/tests/location/README.md
@@ -0,0 +1,8 @@
+# Location tests
+
+These tests are for checking that definition location information
+is correctly recorded.
+
+Each test consists of a file `x.pom` and a file `x.locations.pom`.
+For every key in `x.pom`, there’s a corresponding key in `x.locations.pom`
+which is set to the line number where the key was defined in `x.pom`.
diff --git a/tests/location/basic.locations.pom b/tests/location/basic.locations.pom
new file mode 100644
index 0000000..fc163cc
--- /dev/null
+++ b/tests/location/basic.locations.pom
@@ -0,0 +1,3 @@
+x = 6
+y = 4
+z = 1
diff --git a/tests/location/basic.pom b/tests/location/basic.pom
new file mode 100644
index 0000000..7a9cbe2
--- /dev/null
+++ b/tests/location/basic.pom
@@ -0,0 +1,6 @@
+z = 3
+
+
+y = "100\r\n
+"
+x = `22.2`