mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-31 04:01:52 -07:00
Add mapLayout
This commit is contained in:
@@ -602,6 +602,10 @@ prop_rename1 (x::T) o n = o `tagMember` x && not (n `tagMember` x) ==>
|
||||
prop_ensure (x :: T) l xs = let y = ensureTags l xs x
|
||||
in and [ n `tagMember` y | n <- xs ]
|
||||
|
||||
prop_mapLayoutId (x::T) = x == mapLayout id x
|
||||
|
||||
prop_mapLayoutInverse (x::T) = x == mapLayout pred (mapLayout succ x)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- some properties for layouts:
|
||||
|
||||
@@ -740,6 +744,9 @@ main = do
|
||||
,("renaming works", mytest prop_rename1)
|
||||
,("ensure works", mytest prop_ensure)
|
||||
|
||||
,("mapLayout id", mytest prop_mapLayoutId)
|
||||
,("mapLayout inverse", mytest prop_mapLayoutInverse)
|
||||
|
||||
-- testing for failure:
|
||||
,("abort fails", mytest prop_abort)
|
||||
,("new fails with abort", mytest prop_new_abort)
|
||||
|
Reference in New Issue
Block a user