1{-# OPTIONS_GHC -F -pgmF htfpp #-}
2-- | entry module for tests
5import Control.Monad (forM_)
8import Test.HUnit (Assertion)
11import Data.CountryCodes
15main = htfMain [htf_thisModulesTests]
17-- | CountryCode -> Text -> CountryCode
19test_Text = forM_ [minBound .. maxBound] $ \c ->
20 assertEqual c (fromText $ toText c)
22-- | CountryCode -> name -> CountryCode
24test_Name = forM_ [minBound .. maxBound] $ \c ->
25 assertEqual c (fromName $ toName c)
27-- | CountryCode -> JSON -> CountryCode
29test_JSON = forM_ ([minBound .. maxBound]::[CountryCode]) $ \c ->
30 assertEqual (Data.Aeson.Success c) (fromJSON $ toJSON c)
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