@@ -48,6 +48,19 @@ import qualified Streamly.Internal.Data.Array as A
48type Array = A.Array
48type Array = A.Array
52+#ifdef TEST_SMALL_ARRAY
53+moduleName = "Data.SmallArray"
54+#elif defined(TEST_ARRAY)
55+moduleName = "Data.Array.Foreign"
56+#elif defined(DATA_ARRAY_PRIM_PINNED)
57+moduleName = "Data.Array.Prim.Pinned"
58+#elif defined(DATA_ARRAY_PRIM)
59+moduleName = "Data.Array.Prim"
61+moduleName = "Data.Array"
51-- Coverage build takes too long with default number of tests
64-- Coverage build takes too long with default number of tests
52maxTestCount :: Int
65maxTestCount :: Int
53#ifdef DEVBUILD
66#ifdef DEVBUILD
@@ -213,6 +226,7 @@ main =
214 H.parallel $
227 H.parallel $
215 modifyMaxSuccess (const maxTestCount) $ do
228 modifyMaxSuccess (const maxTestCount) $ do
229+ describe moduleName $ do
216 describe "Construction" $ do
230 describe "Construction" $ do
217 prop "length . writeN n === n" testLength
231 prop "length . writeN n === n" testLength
218 prop "length . fromStreamN n === n" testLengthFromStreamN
232 prop "length . fromStreamN n === n" testLengthFromStreamN