From 0cccdb0ae595cd7e3e136e984ac7b95b99f71a53 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sun, 23 Jul 2017 09:50:04 -0400 Subject: Import urweb_20170720+dfsg.orig.tar.gz [dgit import orig urweb_20170720+dfsg.orig.tar.gz] --- tests/rpcDO.ur | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/rpcDO.ur (limited to 'tests/rpcDO.ur') diff --git a/tests/rpcDO.ur b/tests/rpcDO.ur new file mode 100644 index 0000000..4ba6015 --- /dev/null +++ b/tests/rpcDO.ur @@ -0,0 +1,25 @@ +datatype list t = Nil | Cons of t * list t + +table t : {A : int} + +fun main () : transaction page = + let + fun rows () = + query (SELECT * FROM t) + (fn r ls => return (Cons (r.T.A, ls))) + Nil + + fun show ls = + case ls of + Nil => + | Cons (x, ls') => {[x]}
{show ls'}
+ in + s <- source Nil; + return +