summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 16:44:34 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 16:44:34 -0400
commitccb85d8fc50d86d6f51387d21cd3a4b9c867a8a4 (patch)
tree084d96ea944f4365ae9d0a6b5894ecca892801ca /tests
parent7f707b5fc653de58077cafccbd867e5394b4ca7b (diff)
Relax checking of table implications
Diffstat (limited to 'tests')
-rw-r--r--tests/policy.ur6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/policy.ur b/tests/policy.ur
index 2b9fb4b3..bc4da5be 100644
--- a/tests/policy.ur
+++ b/tests/policy.ur
@@ -1,11 +1,11 @@
table fruit : { Id : int, Nam : string, Weight : float, Secret : string }
-policy query_policy (SELECT fruit.Id, fruit.Nam FROM fruit)
+policy query_policy (SELECT fruit.Id, fruit.Nam, fruit.Weight FROM fruit)
fun main () =
- xml <- queryX (SELECT fruit.Id, fruit.Nam, fruit.Secret
+ xml <- queryX (SELECT fruit.Id, fruit.Nam
FROM fruit)
- (fn x => <xml><li>{[x.Fruit.Secret]}</li></xml>);
+ (fn x => <xml><li>{[x.Fruit.Id]}: {[x.Fruit.Nam]}</li></xml>);
return <xml><body>
{xml}