{-# LANGUAGE TemplateHaskell #-} module Test.Serialisation.Raw.Base58 (tests) where import Test.Tasty import Test.Tasty.HUnit import qualified Data.Aeson as Aeson import Test.Serialisation.Types import Test.Util.TH tests :: TestTree tests = testGroup "Test.Serialisation.Raw.Base58" [ testCase "show" test_show , testCase "structured" test_structured , testCase "json" test_json ] test_show :: Assertion test_show = assertEqual "" exampleUsesBase58 $ $(reparseShow exampleUsesBase58) test_structured :: Assertion test_structured = assertEqual "" exampleUsesBase58 $ $(reparseStructured exampleUsesBase58) test_json :: Assertion test_json = assertEqual "" (Right exampleUsesBase58) $ Aeson.eitherDecode $ Aeson.encode exampleUsesBase58