summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/random.ur8
-rw-r--r--tests/random.urp4
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/random.ur b/tests/random.ur
new file mode 100644
index 00000000..b2006302
--- /dev/null
+++ b/tests/random.ur
@@ -0,0 +1,8 @@
+table t : { A : int }
+
+fun main () : transaction page =
+ x <- queryX (SELECT *
+ FROM t
+ ORDER BY RANDOM)
+ (fn r => <xml>{[r.T.A]}<br/></xml>);
+ return <xml><body>{x}</body></xml>
diff --git a/tests/random.urp b/tests/random.urp
new file mode 100644
index 00000000..5cc06fe5
--- /dev/null
+++ b/tests/random.urp
@@ -0,0 +1,4 @@
+database dbname=test
+sql random.sql
+
+random