@@ -15,7 +15,6 @@ import Test.QuickCheck
1515import qualified Data.ByteString.Char8 as B
1616import Data.Time
1717import Control.Monad.Reader
18−import Debug.Trace
1918arbitrary' :: AtomType -> WithTCMap Gen (Either RelationalError Atom)
2019arbitrary' IntegerAtomType =
2120 Right . IntegerAtom <$> lift (arbitrary :: Gen Integer)
@@ -48,13 +47,12 @@ arbitrary' ByteStringAtomType =
4847arbitrary' BoolAtomType =
4948 Right . BoolAtom <$> lift (arbitrary :: Gen Bool)
5049arbitrary' constructedAtomType@(ConstructedAtomType tcName tvMap)
51− | traceShow constructedAtomType False = undefined
5250 --special-casing for Interval type
5351 | isIntervalAtomType constructedAtomType = createArbitraryInterval (intervalSubType constructedAtomType)
5452 | otherwise = do
5553 tcMap <- ask
5654 let maybeTCons = findTypeConstructor tcName tcMap
57− let eitherTCons = traceShowId $ maybeToRight (NoSuchTypeConstructorName tcName) maybeTCons
55+ let eitherTCons = maybeToRight (NoSuchTypeConstructorName tcName) maybeTCons
5856 let eitherDCDefs = snd <$> eitherTCons
5957 let eitherGenDCDef = elements <$> eitherDCDefs
6058 case eitherGenDCDef of
@@ -77,7 +75,7 @@ maybeToRight _ (Just x) = Right x
7775maybeToRight y Nothing = Left y
7876
7977instance Arbitrary Text where
80− arbitrary = pack <$> elements ["Mary", "Johnny", "Sunny", "Ted"]
78+ arbitrary = pack <$> (elements $ map (replicate 3) ['A'..'Z'])
8179
8280instance Arbitrary Day where
8381 arbitrary = ModifiedJulianDay <$> (arbitrary :: Gen Integer)