summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-02-12 17:54:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-02-12 17:57:32 -0400
commit41e5f8dfe79d6db8b0bd1492d8f28caf6b24ef5f (patch)
treeb39ece56837a212d8ca147c24154fcecaf9a647f /Test.hs
parent595bb1862bb32462ad743b790c1c4e536569e60f (diff)
data types and serialization for metadata
A very haskell commit! Just data types, instances to serialize the metadata to a nice format, and QuickCheck tests. This commit was sponsored by Andreas Leha.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index a78307127..43f5939ee 100644
--- a/Test.hs
+++ b/Test.hs
@@ -45,6 +45,7 @@ import qualified Logs.Remote
import qualified Logs.Unused
import qualified Logs.Transfer
import qualified Logs.Presence
+import qualified Types.MetaData
import qualified Remote
import qualified Types.Key
import qualified Types.Messages
@@ -144,6 +145,8 @@ properties = localOption (QuickCheckTests 1000) $ testGroup "QuickCheck"
, testProperty "prop_hashes_stable" Utility.Hash.prop_hashes_stable
, testProperty "prop_schedule_roundtrips" Utility.Scheduled.prop_schedule_roundtrips
, testProperty "prop_duration_roundtrips" Utility.HumanTime.prop_duration_roundtrips
+ , testProperty "prop_updateMetaData_sane" Types.MetaData.prop_updateMetaData_sane
+ , testProperty "prop_metadata_serialize" Types.MetaData.prop_metadata_serialize
]
{- These tests set up the test environment, but also test some basic parts