on master help sign in
Test consing over streams

--HG-- extra : convert_revision : 3972f1c6af1021a6e6545bd989768b00e9623258

commit91f3628b9cd3ac928143b831a003935b7307e6ee authorBryan O'Sullivan <bos@serpentine.com> dateSun 1 Mar 2009, 06:18 (18 years ago) parent2a755f4
1 file changed+2
tests/Properties.hs+2
tests/Properties.hs+2
@@ -101,6 +101,7 @@ eqEP a b e w = a s == b t &&
101101 n = fromIntegral w
102102 s = notEmpty e
103103
104+prop_S_cons x = (x:) `eqP` (S.unstreamList . S.cons x)
104105prop_T_cons x = (x:) `eqP` (T.unpack . T.cons x)
105106prop_TL_cons x = ((x:) `eqP` (TL.unpack . TL.cons x))
106107prop_T_snoc x = (++ [x]) `eqP` (T.unpack . (flip T.snoc) x)
@@ -272,6 +273,7 @@ tests = [
272273 ("prop_T_utf32LE", mytest prop_T_utf32LE),
273274 ("prop_T_utf32BE", mytest prop_T_utf32BE),
274275
276+ ("prop_S_cons", mytest prop_S_cons),
275277 ("prop_T_cons", mytest prop_T_cons),
276278 ("prop_TL_cons", mytest prop_TL_cons),
277279 ("prop_T_snoc", mytest prop_T_snoc),