diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:29:55 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:29:55 -0500 |
commit | 12bb99a0ba702af12e89bfe544f2a572e5d4818d (patch) | |
tree | 5857f5dc14c0b71b191d1a267c9a8fdfcee03810 /tests | |
parent | 45dee9afc8f0b8030115943af95df499ba8ee13e (diff) |
Cookies through elaborate
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cookie.ur | 9 | ||||
-rw-r--r-- | tests/cookie.urp | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/cookie.ur b/tests/cookie.ur new file mode 100644 index 00000000..b2bca580 --- /dev/null +++ b/tests/cookie.ur @@ -0,0 +1,9 @@ +cookie c : string + +fun main () : transaction page = + setCookie c "Hi"; + so <- getCookie c; + case so of + None => return <xml>No cookie</xml> + | Some s => return <xml>Cookie: {[s]}</xml> + diff --git a/tests/cookie.urp b/tests/cookie.urp new file mode 100644 index 00000000..61a1a1e0 --- /dev/null +++ b/tests/cookie.urp @@ -0,0 +1,3 @@ +debug + +cookie |