1module Tests.Shared (tests) where
3import Text.Pandoc.Definition
4import Text.Pandoc.Shared
7import Tests.Arbitrary()
10tests = [ testGroup "normalize"
11 [ property "p_normalize_blocks_rt" p_normalize_blocks_rt
12 , property "p_normalize_inlines_rt" p_normalize_inlines_rt
13 , property "p_normalize_no_trailing_spaces"
14 p_normalize_no_trailing_spaces
18p_normalize_blocks_rt :: [Block] -> Bool
19p_normalize_blocks_rt bs = normalize bs == normalize (normalize bs)
21p_normalize_inlines_rt :: [Inline] -> Bool
22p_normalize_inlines_rt ils = normalize ils == normalize (normalize ils)
24p_normalize_no_trailing_spaces :: [Inline] -> Bool
25p_normalize_no_trailing_spaces ils = null ils' || last ils' /= Space
26 where ils' = normalize $ ils ++ [Space]
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