1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Scale down the sizes by a factor of four.

This commit is contained in:
Rob Rix 2016-06-30 12:37:41 -04:00
parent a5af331f71
commit 58138d5867

View File

@ -31,7 +31,7 @@ spec = parallel $ do
describe "rws" $ do
let compare a b = if extract a == extract b then Just (pure (Replace a b)) else Nothing
prop "produces correct diffs" $
prop "produces correct diffs" . forAll (scale (`div` 4) arbitrary) $
\ (as, bs) -> let tas = toTerm <$> as
tbs = toTerm <$> bs
diff = free (Free (pure Program :< Indexed (rws compare identity tas tbs :: [Diff Text Category]))) in