Commit Graph

449 Commits

Author SHA1 Message Date
pranaysashank
c8c161c34b Rename module Internal.Prelude to Internal.Data.Stream.IsStream. 2020-08-24 00:29:25 +05:30
Pranay Sashank
0a8d13d746 Make polymorphic semigroup ops wSerial, etc same fixity as <>.
- Update Changelog to reflect the change.
2020-08-22 13:03:25 +05:30
Pranay Sashank
4d5ab4e0f0 Move monoidOps to Prelude from test/Main.hs 2020-07-30 10:18:11 +05:30
Pranay Sashank
f1b0795e5d Move applicative and functor ops from test/Main to Prelude. 2020-07-30 10:18:11 +05:30
Pranay Sashank
d78cc5388d Refactor applicativeOps. 2020-07-30 10:18:05 +05:30
Pranay Sashank
0f773225ef Refactor Concurrent ops into a separate test suite. 2020-07-27 08:05:11 +05:30
Pranay Sashank
0b79fce400 Refactor Parallel ops into a separate test suite. 2020-07-27 08:05:11 +05:30
Pranay Sashank
050b5670e5 Refactor WAsync ops into a separate test suite. 2020-07-27 08:05:11 +05:30
Pranay Sashank
b8916dc43f Refactor Async ops into a separate test suite. 2020-07-27 08:05:11 +05:30
Pranay Sashank
7d4cf315f4 Refactor Ahead ops into a separate test suite. 2020-07-27 08:05:07 +05:30
Pranay Sashank
cfb953556d Refactor ZipAsync ops into a separate test suite. 2020-07-27 08:04:18 +05:30
Pranay Sashank
9cec13f699 Refactor ZipSerial ops into a separate test suite. 2020-07-27 08:03:30 +05:30
Pranay Sashank
80daa14f61 Refactor WSerial ops into a separate test suite. 2020-07-27 08:03:27 +05:30
Pranay Sashank
397d1672a3 Refactor Serial ops into a separate test suite.
- Refactor cabal options into a common prelude-test-options stanza.
- Add semigroups as a dependency for prelude test suites.
2020-07-27 07:59:12 +05:30
adithyaov
4d0631a0c6 Add Data.Array.Prim.Pinned and Data.Array.Prim
Respect the new module structure for Internal files
2020-07-21 09:13:31 +05:30
pranaysashank
f38b672e44 Add tests for take, takeEQ, takeGE with n <= 0.
- Delete `lookAheadFail` test because the test doesn't make sense
  i.e. It doesn't have to fail when the stream length exceeds n in `take
  n`.
2020-07-11 18:20:32 +05:30
pranaysashank
51127df924 Add test for MonadFail instance of Parser. 2020-07-10 19:57:57 +05:30
pranaysashank
745265e0f5 Use default-extensions for tests. 2020-07-07 15:18:21 +05:30
Shlok Datye
9225c35d6b Add tests for unfold and unfold0 2020-07-03 15:57:33 +05:30
Shruti_Umat
7eab2aff7c nested-if indentation fix 2020-06-11 18:21:30 +05:30
Shruti_Umat
03ee5ef784 remove prefix test from test function names
fix indentation

change repo token for travis build

fix do block indentation
2020-06-11 18:21:30 +05:30
Shruti_Umat
374668fb34 Add tests for partial folds and few full folds
test for maximumBy, maximum

test for head, sum, prod, max, min

toList, length tests

toList, length tests

tests for partial folds and few full folds

Fix indentation, remove warnings
2020-06-11 18:21:30 +05:30
Ahmed Zaheer Dadarkar
88c2aed1cd Split test into smaller property tests.
- Use `listEquals` for lists.
- Update description of tests.
2020-06-11 09:15:19 +05:30
Ahmed Zaheer Dadarkar
c1077de099 add test for many, comment failing test for some 2020-06-11 09:14:27 +05:30
Ahmed Zaheer Dadarkar
9751698ff7 Add tests for shortest and longest.
- Remove deintercalate test since it is unimplemented.
2020-06-11 09:13:49 +05:30
Ahmed Zaheer Dadarkar
b2cbde7ecf Add tests for ParserD. 2020-06-11 09:10:58 +05:30
Ahmed Zaheer Dadarkar
646cb86f0d update use of <> with ++ 2020-06-10 08:20:52 +05:30
Ahmed Zaheer Dadarkar
dda3fb8b91 comment lookAhead failing cases for now 2020-06-10 08:20:52 +05:30
Ahmed Zaheer Dadarkar
f67df51e6b update chooseInt with choose restricted to Int 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
103e5863c8 update description of tests 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
14f4dcdbe9 update to use different equality checker for lists 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
f819fdd313 add lookAheadFail function to test failure case of lookAhead 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
3fa6710e3d add description for test functions 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
f2a1219c6f split functions into pass case and either (pass or fail) case 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
75f1f8e098 add top level variables and split test functions with multiple properties 2020-06-10 08:18:59 +05:30
Ahmed Zaheer Dadarkar
2f8d9b0a31 Add tests for Internal.Data.Parser.
- Tests are added for the functions: yield, yieldM, die, dieM, any,
all, fromFold, peek, eof, satisfy, take, takeEQ, takeGE, takeWhile,
takeWhile1, lookAhead, sliceSepBy.
2020-06-10 08:17:15 +05:30
adithyaov
9fd164b012 Modify boundary condition tests for lastN 2020-02-26 13:41:45 +05:30
adithyaov
59509cd378 Fix lastN for n <= 0 2020-02-26 13:41:45 +05:30
adithyaov
9bab836f6c Change module structure for PrimArray
Data.PrimArray -> Data.Prim.Array
2020-01-25 15:39:59 +05:30
adithyaov
4008a26ee2 Add a test-suite for PrimArray 2020-01-25 15:39:56 +05:30
Pranay Sashank
00f541e6d5 Hide Streamly.Data.Array and Streamly.Data.SmallArray.
- Closes #378
2020-01-21 13:24:22 +05:30
Harendra Kumar
290d2f6135 Make some updates to takeByTime/dropByTime
* Document the precise behavior, some changes were made to the earlier behavior
* Make some changes to implementation according to (newly) documented behavior
* TakeByTime: perform the time check before generating the element so that we
  do not drop an element after generation.
* TakeByTime now yields at least one element if the duration is non-zero
* dropByTime does not check the time after the drop duration is over
* Add inspection tests
* make the tests for shorter duration, earlier tests took too long
2020-01-16 02:02:37 +05:30
adithyaov
1979370373 Add takeByTime and dropByTime combinators 2020-01-16 02:02:37 +05:30
adithyaov
5aa8e44d24 Add tests to lastN 2020-01-02 16:51:43 +05:30
adithyaov
d6afd92d98 Add rollingHashFirstN, drainN and drainWhile 2019-12-30 15:57:34 +05:30
Pranay Sashank
333dc6630f Merge Memory, Data, SmallArray tests into one module. 2019-12-12 14:03:43 +05:30
Pranay Sashank
ee32239753 Add tests for Streamly.Data.SmallArray. 2019-12-12 14:03:43 +05:30
Pranay Sashank
ae2dce8db1 Add write and fromStream Data.Array apis and corresponding tests.
- Remove length field from Data.Array.
2019-12-04 13:41:55 +05:30
Pranay Sashank
175b0b6d10 Add tests for Streamly.Data.Array and read operator. 2019-12-04 13:41:55 +05:30