From f63e631a8e110c7b0a54b8b55516ad3c2d75b626 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 8 Sep 2025 22:03:14 -0400 Subject: Add more tests --- tests/location/README.md | 8 ++++++++ tests/location/basic.locations.pom | 3 +++ tests/location/basic.pom | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/location/README.md create mode 100644 tests/location/basic.locations.pom create mode 100644 tests/location/basic.pom (limited to 'tests/location') 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` -- cgit v1.2.3