mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
bit more code coverage
This commit is contained in:
parent
4d9a6c2681
commit
d5955b023c
@ -355,6 +355,10 @@ prop_focusWindow_local (n :: NonNegative Int) (x::T ) =
|
||||
i = fromIntegral n `mod` length s
|
||||
in hidden_spaces (focusWindow (s !! i) x) == hidden_spaces x
|
||||
|
||||
-- On an invalid window, the stackset is unmodified
|
||||
prop_focusWindow_identity (n :: Char) (x::T ) =
|
||||
not (n `member` x) ==> focusWindow n x == x
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- member/findTag
|
||||
|
||||
@ -718,6 +722,7 @@ main = do
|
||||
|
||||
,("focusWindow is local", mytest prop_focusWindow_local)
|
||||
,("focusWindow works" , mytest prop_focusWindow_works)
|
||||
,("focusWindow identity", mytest prop_focusWindow_identity)
|
||||
|
||||
,("findTag" , mytest prop_findIndex)
|
||||
,("allWindows/member" , mytest prop_allWindowsMember)
|
||||
|
Loading…
x
Reference in New Issue
Block a user