mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
added new test-suite
This commit is contained in:
@@ -1,18 +1,6 @@
|
||||
module ManageDocks where
|
||||
import XMonad
|
||||
import XMonad.Hooks.ManageDocks
|
||||
import Test.QuickCheck
|
||||
import Foreign.C.Types
|
||||
import Properties
|
||||
|
||||
instance Arbitrary CLong where
|
||||
arbitrary = fromIntegral <$> (arbitrary :: Gen Int)
|
||||
instance Arbitrary RectC where
|
||||
arbitrary = do
|
||||
(x,y) <- arbitrary
|
||||
NonNegative w <- arbitrary
|
||||
NonNegative h <- arbitrary
|
||||
return $ RectC (x,y,x+w,y+h)
|
||||
import XMonad ( Rectangle )
|
||||
import XMonad.Hooks.ManageDocks
|
||||
|
||||
prop_r2c_c2r :: RectC -> Bool
|
||||
prop_r2c_c2r r = r2c (c2r r) == r
|
||||
|
Reference in New Issue
Block a user