summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2019-04-15 16:20:12 -0400
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2019-04-15 16:20:12 -0400
commita19e53017364ceddbba557fb363ca26b273f89da (patch)
tree7045f1d0231c7ccad224b04e23e52409dde74603 /tests
parentfb0d4f6c8492cc08bbf50609daa2cda1dc53a796 (diff)
Catch clashing rewritten URL prefixes
Diffstat (limited to 'tests')
-rw-r--r--tests/prefixClash.ur3
-rw-r--r--tests/prefixClash.urp4
-rw-r--r--tests/prefixClash.urs3
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/prefixClash.ur b/tests/prefixClash.ur
new file mode 100644
index 00000000..a2325077
--- /dev/null
+++ b/tests/prefixClash.ur
@@ -0,0 +1,3 @@
+val index = return <xml></xml>
+val other = return <xml></xml>
+val ather = return <xml></xml>
diff --git a/tests/prefixClash.urp b/tests/prefixClash.urp
new file mode 100644
index 00000000..cf4545d0
--- /dev/null
+++ b/tests/prefixClash.urp
@@ -0,0 +1,4 @@
+rewrite url PrefixClash/index foo
+rewrite url PrefixClash/* foo/ [-]
+
+prefixClash
diff --git a/tests/prefixClash.urs b/tests/prefixClash.urs
new file mode 100644
index 00000000..e5e58c0a
--- /dev/null
+++ b/tests/prefixClash.urs
@@ -0,0 +1,3 @@
+val index : transaction page
+val other : transaction page
+val ather : transaction page