on master help sign in
Test mempty (silly, I know)

--HG-- extra : convert_revision : 0754d280233eca30ec5da536b96efa30a422aa35

commitcfe95e8e71dbedf0c426dd0ee31cc7a18e0a6f77 authorBryan O'Sullivan <bos@serpentine.com> dateWed 8 Sep 2010, 04:01 (16 years ago) parent814558d
1 file changed+4
tests/Properties.hs+4
tests/Properties.hs+4
@@ -184,6 +184,8 @@ t_mappend s = mappend s`eqP` (unpackS . mappend (T.pack s))
184184tl_mappend s = mappend s`eqP` (unpackS . mappend (TL.pack s))
185185t_mconcat = mconcat `eq` (unpackS . mconcat . L.map T.pack)
186186tl_mconcat = mconcat `eq` (unpackS . mconcat . L.map TL.pack)
187+t_mempty = mempty == (unpackS (mempty :: T.Text))
188+tl_mempty = mempty == (unpackS (mempty :: TL.Text))
187189t_IsString = fromString `eqP` (T.unpack . fromString)
188190tl_IsString = fromString `eqP` (TL.unpack . fromString)
189191
@@ -809,6 +811,8 @@ tests = [
809811 testProperty "tl_mappend" tl_mappend,
810812 testProperty "t_mconcat" t_mconcat,
811813 testProperty "tl_mconcat" tl_mconcat,
814+ testProperty "t_mempty" t_mempty,
815+ testProperty "tl_mempty" tl_mempty,
812816 testProperty "t_IsString" t_IsString,
813817 testProperty "tl_IsString" tl_IsString
814818 ],