on master help sign in
Fix goodProducer on 32-bit systems
a35b557Bryan O'Sullivan
tests/UnitTests.hs+5−2
@@ -81,9 +81,12 @@ goodProducer = assertEqual "partial encoding should not explode on undefined"
81 '{' (L.head (encode wibble))
81 '{' (L.head (encode wibble))
82 where
82 where
83 wibble = Wibble {
83 wibble = Wibble {
84− wibbleString = replicate 4030 'a'
84+ wibbleString = replicate k 'a'
85− , wibbleInt = undefined
85+ , wibbleInt = 1
86 }
86 }
87+ k | arch32bit = 4047
88+ | otherwise = 4030
89+ arch32bit = (maxBound :: Int) == 2147483647
87
90
88-- Test decoding various UTC time formats
91-- Test decoding various UTC time formats
89--
92--