diff options
Diffstat (limited to 'users/grfn/xanthous/test/Xanthous/MessageSpec.hs')
-rw-r--r-- | users/grfn/xanthous/test/Xanthous/MessageSpec.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/users/grfn/xanthous/test/Xanthous/MessageSpec.hs b/users/grfn/xanthous/test/Xanthous/MessageSpec.hs index b681e537efe6..2068e338bafe 100644 --- a/users/grfn/xanthous/test/Xanthous/MessageSpec.hs +++ b/users/grfn/xanthous/test/Xanthous/MessageSpec.hs @@ -38,7 +38,7 @@ test = testGroup "Xanthous.Messages" let Right tpl = compileMustacheText "foo" "bar" msg = Single tpl - mm = Nested $ [("foo", Direct msg)] + mm = Nested [("foo", Direct msg)] in mm ^? ix ["foo"] @?= Just msg ] , testGroup "lookupMessage" @@ -50,4 +50,10 @@ test = testGroup "Xanthous.Messages" , testGroup "Messages" [ testCase "are all valid" $ messages `deepseq` pure () ] + + , testGroup "Template" + [ testGroup "eq" + [ testProperty "reflexive" $ \(tpl :: Template) -> tpl == tpl + ] + ] ] |