5import qualified Data.Map as M
8import Test.Framework (testGroup)
9import Test.Framework.Providers.HUnit
10import Test.Framework.Providers.QuickCheck2
13import Text.Hakyll.Context
16contextGroup = testGroup "Context"
17 [ testCase "test_renderDate_1" test_renderDate_1
18 , testCase "test_renderDate_2" test_renderDate_2
19 , testCase "test_changeExtension_1" test_changeExtension_1
22-- Date rendering test cases.
24 M.lookup "date" rendered @?= Just "December 30, 2009"
26 rendered = renderDate "date" "%B %e, %Y" "Unknown date"
27 (M.singleton "path" "2009-12-30-a-title.markdown")
29test_renderDate_2 = M.lookup "date" rendered @?= Just "Unknown date"
31 rendered = renderDate "date" "%B %e, %Y" "Unknown date" $
32 M.singleton "path" "2009-badness-30-a-title.markdown"
34-- changeExtension test cases.
35test_changeExtension_1 = M.lookup "url" rendered @?= Just "foo.php"
37 rendered = changeExtension "php" (M.singleton "url" "foo.html")
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