diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 16:17:23 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 16:17:23 -0400 |
commit | 7f707b5fc653de58077cafccbd867e5394b4ca7b (patch) | |
tree | b8e6e863e5ebdcfb1ee3e5e2954799e74eefe89e /tests/policy.ur | |
parent | cfde341ff74fbee501da623d765c8ed6cbf3731f (diff) |
Iflow tested with positive and negative cases
Diffstat (limited to 'tests/policy.ur')
-rw-r--r-- | tests/policy.ur | 6 |
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} |