summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-04-30 05:57:29 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-04-30 05:57:29 +0200
commit904630eb205fb37ee3526148efc2391829088541 (patch)
tree9471ef8ffc939df8f32b05949859c1d5ba39b692 /tests
parenta2bcd150f362e4a61eea871fa73f5830b4e697cc (diff)
downloadmetatile-904630eb205fb37ee3526148efc2391829088541.tar
metatile-904630eb205fb37ee3526148efc2391829088541.zip
a bit more precise about building non-empty stacksets for one test
darcs-hash:20070430035729-9c5c1-90b4f4b1e0db1884704e3a1d8fc246734220b603
Diffstat (limited to 'tests')
-rw-r--r--tests/Properties.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Properties.hs b/tests/Properties.hs
index 19ccf49..91ffe33 100644
--- a/tests/Properties.hs
+++ b/tests/Properties.hs
@@ -59,7 +59,7 @@ instance (Integral i, Integral j, Ord a, Arbitrary a) => Arbitrary (StackSet i j
return $ fromList (fromIntegral n,sc,ls)
coarbitrary = error "no coarbitrary for StackSet"
-prop_member1 i n m = member i (push i x)
+prop_member1 i n m = n > 0 && m > 0 ==> member i (push i x)
where x = empty n m :: T
prop_member2 i x = not (member i (delete i x))