mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-02 05:01:53 -07:00
deeper test for differentiate. back to 100% coverage
This commit is contained in:
@@ -547,7 +547,7 @@ prop_screens (x :: T) = n `elem` screens x
|
|||||||
|
|
||||||
prop_differentiate xs =
|
prop_differentiate xs =
|
||||||
if null xs then differentiate xs == Nothing
|
if null xs then differentiate xs == Nothing
|
||||||
else focus (fromJust (differentiate xs)) == head xs
|
else (differentiate xs) == Just (Stack (head xs) [] (tail xs))
|
||||||
where _ = xs :: [Int]
|
where _ = xs :: [Int]
|
||||||
|
|
||||||
-- looking up the tag of the current workspace should always produce a tag.
|
-- looking up the tag of the current workspace should always produce a tag.
|
||||||
|
Reference in New Issue
Block a user