diff options
author | Rustan Leino <unknown> | 2015-08-19 20:05:47 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2015-08-19 20:05:47 -0700 |
commit | 69c320b225825eb2adf2ae899f88588a10fd27fe (patch) | |
tree | 8d9fe5b99e481291f656718e29c81fc2cd04ab92 /Test/dafny0 | |
parent | 747e2d218f49683605d52f70dbb372f37d9f304b (diff) |
Refactored and improved bounds discovery
Diffstat (limited to 'Test/dafny0')
-rw-r--r-- | Test/dafny0/ISets.dfy | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Test/dafny0/ISets.dfy b/Test/dafny0/ISets.dfy index bb0230f4..703039c8 100644 --- a/Test/dafny0/ISets.dfy +++ b/Test/dafny0/ISets.dfy @@ -4,7 +4,7 @@ ghost method M()
{
ghost var s := iset{2};
- // test "in
+ // test "in"
if(2 in s)
{
}
@@ -35,6 +35,9 @@ ghost method m1() { assert s2 - s3 == iset{3}; // set difference
assert (iset x | x in s2 :: x+1) == iset{2,3,4}; // set comprehension
+ assert 17 in (iset x: int | true :: x); // set comprehension
+
+ assert (imap x: int | true :: x+1)[14] == 15;
}
|