aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2017-03-17 15:15:58 -0400
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2017-03-17 15:15:58 -0400
commit0790751d4c2c97d85d6ccd7865271da23dee85e7 (patch)
tree011f39ae61f88db524c77b6ccc2a5af7f48d2a65 /tests
parent3aba065f1d069e033c6993ceac301adc25d865b3 (diff)
Better error message for .urp files with too many blank lines
Diffstat (limited to 'tests')
-rw-r--r--tests/malformed.ur3
-rw-r--r--tests/malformed.urp5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/malformed.ur b/tests/malformed.ur
new file mode 100644
index 00000000..60e0b9f2
--- /dev/null
+++ b/tests/malformed.ur
@@ -0,0 +1,3 @@
+fun main () : transaction page = return <xml><body>
+ FYI, this file isn't the malformed one. That's <tt>malformed.urp</tt>.
+</body></xml>
diff --git a/tests/malformed.urp b/tests/malformed.urp
new file mode 100644
index 00000000..d065a037
--- /dev/null
+++ b/tests/malformed.urp
@@ -0,0 +1,5 @@
+rewrite url Malformed/*
+
+rewrite style Malformed/*
+
+malformed