summaryrefslogtreecommitdiff
path: root/tests/substring.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/substring.ur')
-rw-r--r--tests/substring.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/substring.ur b/tests/substring.ur
new file mode 100644
index 00000000..bc7b5068
--- /dev/null
+++ b/tests/substring.ur
@@ -0,0 +1,5 @@
+fun main () : transaction page = return <xml>
+ {[case String.split "abc{" #"{" of
+ None => "!"
+ | Some (pre, post) => pre ^ post]}
+</xml>