diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-10 21:38:08 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-10 21:38:08 +0000 |
commit | f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b (patch) | |
tree | 9aeb04e2bf034fb83cbd5efd7ae472f9411996cd /spec/test/Thermoprint | |
parent | 6ec3c805ea2cd629a75641530de30ab39a191409 (diff) | |
download | thermoprint-f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b.tar thermoprint-f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b.tar.gz thermoprint-f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b.tar.bz2 thermoprint-f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b.tar.xz thermoprint-f6dc3d1d5e5109c4196ad17ee69ccc7fc8b57b3b.zip |
Fixed issue: Ram usage explodes during tests
Diffstat (limited to 'spec/test/Thermoprint')
-rw-r--r-- | spec/test/Thermoprint/PrintoutSpec.hs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/test/Thermoprint/PrintoutSpec.hs b/spec/test/Thermoprint/PrintoutSpec.hs index b92d76a..7ba3656 100644 --- a/spec/test/Thermoprint/PrintoutSpec.hs +++ b/spec/test/Thermoprint/PrintoutSpec.hs | |||
@@ -9,8 +9,6 @@ import Thermoprint.Printout | |||
9 | import Data.Aeson (fromJSON, ToJSON(..), Result(..)) | 9 | import Data.Aeson (fromJSON, ToJSON(..), Result(..)) |
10 | import Data.Function (on) | 10 | import Data.Function (on) |
11 | 11 | ||
12 | import Control.DeepSeq (($!!), force) | ||
13 | |||
14 | -- Equality via cotext on Block | 12 | -- Equality via cotext on Block |
15 | instance Eq Block where | 13 | instance Eq Block where |
16 | (==) = (==) `on` cotext | 14 | (==) = (==) `on` cotext |
@@ -20,7 +18,7 @@ deriving instance Eq Chunk | |||
20 | spec :: Spec | 18 | spec :: Spec |
21 | spec = do | 19 | spec = do |
22 | prop "prop_text" prop_text | 20 | prop "prop_text" prop_text |
23 | prop "json" prop_json | 21 | parallel $ prop "json" prop_json |
24 | where | 22 | where |
25 | prop_json :: Printout -> Bool | 23 | prop_json :: Printout -> Bool |
26 | prop_json p = force $ (== Success p) . fromJSON . toJSON $!! p | 24 | prop_json p = (== Success p) . fromJSON . toJSON $ p |