diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/onerror.ur | 4 | ||||
-rw-r--r-- | tests/onerror.urp | 4 | ||||
-rw-r--r-- | tests/onerror.urs | 1 | ||||
-rw-r--r-- | tests/onerrorE.ur | 5 |
4 files changed, 14 insertions, 0 deletions
diff --git a/tests/onerror.ur b/tests/onerror.ur new file mode 100644 index 00000000..9877d8d7 --- /dev/null +++ b/tests/onerror.ur @@ -0,0 +1,4 @@ +fun main n = + case n of + 0 => error <xml>Zero is bad!</xml> + | _ => return <xml/> diff --git a/tests/onerror.urp b/tests/onerror.urp new file mode 100644 index 00000000..39d7ac7d --- /dev/null +++ b/tests/onerror.urp @@ -0,0 +1,4 @@ +onError OnerrorE.err + +onerrorE +onerror diff --git a/tests/onerror.urs b/tests/onerror.urs new file mode 100644 index 00000000..38b757ea --- /dev/null +++ b/tests/onerror.urs @@ -0,0 +1 @@ +val main : int -> transaction page diff --git a/tests/onerrorE.ur b/tests/onerrorE.ur new file mode 100644 index 00000000..b2948c71 --- /dev/null +++ b/tests/onerrorE.ur @@ -0,0 +1,5 @@ +fun err x = return <xml><body> + <h1>Bad thing!</h1> + + {x} +</body></xml> |