aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Properties.hs
diff options
context:
space:
mode:
authorRob <bobstopper@bobturf.org>2007-05-25 08:08:42 +0200
committerRob <bobstopper@bobturf.org>2007-05-25 08:08:42 +0200
commit30cf0a66c8054d7b68b277847374369599343168 (patch)
treea984c5611de03ac2b05f06c4e68e258f752fa967 /tests/Properties.hs
parentf8afb8d6680fdd322e7fda798cbb02f37ddce692 (diff)
downloadxmonad-30cf0a66c8054d7b68b277847374369599343168.tar.gz
xmonad-30cf0a66c8054d7b68b277847374369599343168.tar.xz
xmonad-30cf0a66c8054d7b68b277847374369599343168.zip
Fix bug in noDuplicate invariant
ws used by noDuplicates is actually a list of list of elements which will pretty rarely raise any flags even if the StackSet actually does contain duplicates. This patch concatenates ws to ensure the quickcheck property tests accurately. darcs-hash:20070525060842-64d90-efb031dd261cee4fdda597447036631bcce708fa.gz
Diffstat (limited to 'tests/Properties.hs')
-rw-r--r--tests/Properties.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Properties.hs b/tests/Properties.hs
index eb40539..b93c3a6 100644
--- a/tests/Properties.hs
+++ b/tests/Properties.hs
@@ -111,9 +111,9 @@ invariant (s :: T) = and
]
where
- ws = [ focus t : left t ++ right t
- | w <- workspace (current s) : map workspace (visible s) ++ hidden s
- , let t = stack w, t /= Empty ]
+ ws = concat [ focus t : left t ++ right t
+ | w <- workspace (current s) : map workspace (visible s) ++ hidden s
+ , let t = stack w, t /= Empty ] :: [Char]
noDuplicates = nub ws == ws
-- validScreens = monotonic . sort . M. . (W.current s : W.visible : W$ s