about summary refs log tree commit diff
path: root/test/Xanthous/EntitiesSpec.hs
blob: 14b03f7293311c5aac64f0df79579b13bfd7663a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--------------------------------------------------------------------------------
module Xanthous.EntitiesSpec where
--------------------------------------------------------------------------------
import           Test.Prelude
--------------------------------------------------------------------------------
import qualified Data.Aeson as JSON
--------------------------------------------------------------------------------
import           Xanthous.Entities
--------------------------------------------------------------------------------

main :: IO ()
main = defaultMain test

test :: TestTree
test = testGroup "Xanthous.Entities"
  [ testGroup "EntityChar"
    [ testProperty "JSON round-trip" $ \(ec :: EntityChar) ->
        JSON.decode (JSON.encode ec) === Just ec
    ]
  ]