summaryrefslogtreecommitdiff
path: root/tests/policy.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 16:17:23 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 16:17:23 -0400
commit7f707b5fc653de58077cafccbd867e5394b4ca7b (patch)
treeb8e6e863e5ebdcfb1ee3e5e2954799e74eefe89e /tests/policy.ur
parentcfde341ff74fbee501da623d765c8ed6cbf3731f (diff)
Iflow tested with positive and negative cases
Diffstat (limited to 'tests/policy.ur')
-rw-r--r--tests/policy.ur6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/policy.ur b/tests/policy.ur
index c381beac..2b9fb4b3 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, fruit.Weight FROM fruit)
+policy query_policy (SELECT fruit.Id, fruit.Nam FROM fruit)
fun main () =
- xml <- queryX (SELECT fruit.Id, fruit.Nam
+ xml <- queryX (SELECT fruit.Id, fruit.Nam, fruit.Secret
FROM fruit)
- (fn x => <xml><li>{[x.Fruit.Nam]}</li></xml>);
+ (fn x => <xml><li>{[x.Fruit.Secret]}</li></xml>);
return <xml><body>
{xml}