aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/task_cookie.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/task_cookie.ur')
-rw-r--r--tests/task_cookie.ur9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/task_cookie.ur b/tests/task_cookie.ur
new file mode 100644
index 00000000..39f49b0a
--- /dev/null
+++ b/tests/task_cookie.ur
@@ -0,0 +1,9 @@
+cookie myCookie: {Value: string}
+
+fun main (): transaction page = return <xml></xml>
+
+task initialize = fn () =>
+ c <- getCookie myCookie;
+ case c of
+ None => debug "No cookie"
+ | Some {Value = v} => debug ("Cookie value: " ^ v)