From 447b60afccc89ef18d8f92a260dd1fcdf735898e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 31 Aug 2008 08:32:18 -0400 Subject: Laconic -> Ur --- tests/pcase.ur | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pcase.ur (limited to 'tests/pcase.ur') diff --git a/tests/pcase.ur b/tests/pcase.ur new file mode 100644 index 00000000..581d94c3 --- /dev/null +++ b/tests/pcase.ur @@ -0,0 +1,9 @@ +val flip = fn x : int => case x of 0 => 1 | _ => 0 + +val zero = flip 1 +val one = flip 0 + +val flipS = fn x : string => case x of "" => "Hello world!" | _ => "" + +val s1 = flipS "" +val s2 = flipS "Boop" -- cgit v1.2.3