File: Stream.hs

package info (click to toggle)
haskell-bzlib 0.5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: haskell: 492; ansic: 13; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# OPTIONS_GHC -fno-warn-orphans #-}

-- | Test code and properties for "Codec.Compression.BZip.Stream"
--
module Test.Codec.Compression.BZip.Stream where

import Codec.Compression.BZip.Internal
import Test.QuickCheck


instance Arbitrary BlockSize where
    arbitrary = elements $ DefaultBlockSize : map BlockSize [1 .. 9]


instance Arbitrary MemoryLevel where
    arbitrary = elements [DefaultMemoryLevel, MinMemoryLevel]


instance Arbitrary WorkFactor where
    arbitrary = elements $ DefaultWorkFactor : map WorkFactor [1 .. 250]