diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-18 21:59:00 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-18 21:59:00 +0000 |
commit | 55074a07fdb847749e4f57c6c2eac4ffab1d48b6 (patch) | |
tree | 5cd211775cf84fffa934a17ce276be2d6b3990f6 /server/test/Thermoprint/Server | |
parent | 2d16ad6786e6047fc61b34e6bd7e59e794a9d5a3 (diff) | |
download | thermoprint-55074a07fdb847749e4f57c6c2eac4ffab1d48b6.tar thermoprint-55074a07fdb847749e4f57c6c2eac4ffab1d48b6.tar.gz thermoprint-55074a07fdb847749e4f57c6c2eac4ffab1d48b6.tar.bz2 thermoprint-55074a07fdb847749e4f57c6c2eac4ffab1d48b6.tar.xz thermoprint-55074a07fdb847749e4f57c6c2eac4ffab1d48b6.zip |
Api tests for Thermoprint.Server
Diffstat (limited to 'server/test/Thermoprint/Server')
-rw-r--r-- | server/test/Thermoprint/Server/QueueSpec.hs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/server/test/Thermoprint/Server/QueueSpec.hs b/server/test/Thermoprint/Server/QueueSpec.hs index 4a9297e..8a6bb7b 100644 --- a/server/test/Thermoprint/Server/QueueSpec.hs +++ b/server/test/Thermoprint/Server/QueueSpec.hs | |||
@@ -16,19 +16,6 @@ import Test.QuickCheck.Modifiers | |||
16 | deriving instance (Eq PrintingError) | 16 | deriving instance (Eq PrintingError) |
17 | deriving instance (Eq Queue) | 17 | deriving instance (Eq Queue) |
18 | 18 | ||
19 | instance Arbitrary Queue where | ||
20 | arbitrary = Queue <$> arbitrary <*> arbitrary <*> arbitrary | ||
21 | |||
22 | instance Arbitrary QueueEntry where | ||
23 | arbitrary = QueueEntry <$> arbitrary <*> arbitrary | ||
24 | |||
25 | instance Arbitrary PrintingError where | ||
26 | arbitrary = oneof [ return (IOError "dummy") | ||
27 | ] | ||
28 | |||
29 | instance Arbitrary JobId where | ||
30 | arbitrary = castId . getNonNegative <$> (arbitrary :: Gen (NonNegative Integer)) | ||
31 | |||
32 | spec :: Spec | 19 | spec :: Spec |
33 | spec = do | 20 | spec = do |
34 | describe "queue morphisms" $ do | 21 | describe "queue morphisms" $ do |