5import qualified Data.Map as M
8import Test.Framework (testGroup)
9import Test.Framework.Providers.HUnit
10import Test.Framework.Providers.QuickCheck2
13import Text.Hakyll.Internal.CompressCSS
15-- CompressCSS test group.
16compressCSSGroup = testGroup "CompressCSS"
17 [ testProperty "prop_compressCSS_length" prop_compressCSS_length
18 , testCase "test_compressCSS_1" test_compressCSS_1
19 , testCase "test_compressCSS_2" test_compressCSS_2
20 , testCase "test_compressCSS_3" test_compressCSS_3
21 , testCase "test_compressCSS_4" test_compressCSS_4
24-- CSS compression should always decrease the text length.
25prop_compressCSS_length str = length str >= length (compressCSS str)
27-- Compress CSS test cases.
28test_compressCSS_1 = compressCSS "a { \n color : red; }" @?= "a{color:red}"
29test_compressCSS_2 = compressCSS "img {border :none;;;; }"
30 @?= "img{border:none}"
32 compressCSS "p {font-size : 90%;} h1 {color :white;;; }"
33 @?= "p{font-size:90%}h1{color:white}"
34test_compressCSS_4 = compressCSS "a { /* /* red is pretty cool */ color: red; }"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list