annotate tests/policy.ur @ 1202:509a6d7b60fb

Iflow tested with positive and negative cases
author Adam Chlipala <adamc@hcoop.net>
date Sun, 04 Apr 2010 16:17:23 -0400
parents 8793fd48968c
children a75c66dd2aeb
rev   line source
adamc@1200 1 table fruit : { Id : int, Nam : string, Weight : float, Secret : string }
adamc@1199 2
adamc@1202 3 policy query_policy (SELECT fruit.Id, fruit.Nam FROM fruit)
adamc@1200 4
adamc@1200 5 fun main () =
adamc@1202 6 xml <- queryX (SELECT fruit.Id, fruit.Nam, fruit.Secret
adamc@1201 7 FROM fruit)
adamc@1202 8 (fn x => <xml><li>{[x.Fruit.Secret]}</li></xml>);
adamc@1200 9
adamc@1200 10 return <xml><body>
adamc@1200 11 {xml}
adamc@1200 12 </body></xml>