diff options
author | Devin Mullins <me@twifkak.com> | 2008-05-12 00:42:58 +0200 |
---|---|---|
committer | Devin Mullins <me@twifkak.com> | 2008-05-12 00:42:58 +0200 |
commit | 3dad7d93d1c0c144aee759842557aca053d8c4ff (patch) | |
tree | 40c34f1d5fe221b8c5a179df7684a6e4ce8992e1 /tests | |
parent | 1a73403366d498a478de256b8984c483d80ff563 (diff) | |
download | metatile-3dad7d93d1c0c144aee759842557aca053d8c4ff.tar metatile-3dad7d93d1c0c144aee759842557aca053d8c4ff.zip |
add currentTag convenience function
darcs-hash:20080511224258-78224-93d0cc4af977965e2e27e96efb67a6f362ebbbc1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Properties.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Properties.hs b/tests/Properties.hs index 010a05e..9b0e83c 100644 --- a/tests/Properties.hs +++ b/tests/Properties.hs @@ -378,6 +378,9 @@ prop_findIndex (x :: T) = prop_allWindowsMember w (x :: T) = (w `elem` allWindows x) ==> member w x +prop_currentTag (x :: T) = + currentTag x == tag (workspace (current x)) + -- --------------------------------------------------------------------- -- 'insert' @@ -895,6 +898,7 @@ main = do ,("findTag" , mytest prop_findIndex) ,("allWindows/member" , mytest prop_allWindowsMember) + ,("currentTag" , mytest prop_currentTag) ,("insert: invariant" , mytest prop_insertUp_I) ,("insert/new" , mytest prop_insert_empty) |