summaryrefslogtreecommitdiff
path: root/tests/timestamp.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/timestamp.ur')
-rw-r--r--tests/timestamp.ur11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/timestamp.ur b/tests/timestamp.ur
new file mode 100644
index 00000000..56f030ed
--- /dev/null
+++ b/tests/timestamp.ur
@@ -0,0 +1,11 @@
+table t : { A : time }
+
+fun many ls =
+ case ls of
+ [] => (WHERE TRUE)
+ | tm :: ls' => (WHERE t.A = {[tm]} AND {many ls'})
+
+task initialize = fn () =>
+ tm <- now;
+ dml (DELETE FROM t WHERE {many (tm :: [])})
+