Pranay Sashank
38505ee78b
Fix hlint warnings in Common, Serial test modules.
2020-12-06 13:57:20 +00:00
Pranay Sashank
dd30e2fca1
Fix formatting.
2020-12-06 13:57:20 +00:00
Harendra Kumar
b3fea143aa
Fix partial eval tests for bracket/finally
...
Added a small delay to let the cleanup run.
2020-12-06 13:57:20 +00:00
pranaysashank
48c640408d
Fix failing build on GHC < 8.6.
2020-12-06 13:57:20 +00:00
pranaysashank
60a72a0f62
Add test for zipAsyncApplicative.
2020-12-06 13:57:20 +00:00
pranaysashank
7263bf5c90
Add construction tests for serial streams.
2020-12-06 13:57:20 +00:00
pranaysashank
a6341ee5ec
Add test for drainWhile.
2020-12-06 13:57:20 +00:00
pranaysashank
a94dc1278c
Add test for handle.
2020-12-06 13:57:20 +00:00
pranaysashank
2701894400
Add test for onException and finally.
2020-12-06 13:57:20 +00:00
pranaysashank
edab41601c
Add tests for bracket.
2020-12-06 13:57:20 +00:00
pranaysashank
babd1a2974
Add tests for before and after.
2020-12-06 13:57:20 +00:00
pranaysashank
5fe15b9bcc
Add test for concatMapM and concatUnfold.
2020-12-06 13:57:20 +00:00
pranaysashank
b223994b26
Add test for groupsByRolling.
2020-12-06 13:57:20 +00:00
pranaysashank
bee479ea04
Add test for S.groups.
2020-12-06 13:57:20 +00:00
pranaysashank
d8a2bba2e6
Add construction tests.
...
- Add constructWithYield, yieldM, repeat, repeatM, enumerate,
enumerateTo, fromList, fromListM, zipAsyncApplicative.
2020-12-06 13:57:20 +00:00
pranaysashank
57f43838a5
Add tests for cons, consM, .:, |:.
2020-12-06 13:57:20 +00:00
Harendra Kumar
a187768fac
Merge pull request #795 from composewell/terminatin-folds-2
...
Enhance the fold type to capture terminating folds
2020-12-06 10:52:15 +05:30
Harendra Kumar
e36bfcfff7
Move/reorg some code, use base ver instead of GHC
2020-12-02 10:01:31 +00:00
Ranjeet Ranjan
fe33167ea6
Fix Windows build issues
2020-12-02 07:39:05 +00:00
Harendra Kumar
48e9b1ad89
Refactor test driver
2020-12-02 07:39:05 +00:00
Harendra Kumar
583149c1ed
Refactor to move events along with the test
...
That way its easier to understand what the test is doing, at one place.
2020-12-02 07:39:05 +00:00
Harendra Kumar
e085852068
Move fs ops to test description table
...
* factor out the common "dispatch" part.
2020-12-02 07:39:05 +00:00
Harendra Kumar
bb4b378bab
Factor out common code from event handlers
2020-12-02 07:39:05 +00:00
Ranjeet Ranjan
5ead27a1c4
Refactor to common dispatch function for FSops
2020-12-02 07:39:05 +00:00
Ranjeet Ranjan
d21c0b7f22
Factor out duplicate code to common function
2020-12-02 07:39:05 +00:00
Ranjeet Ranjan
ce2426d175
Fix CI build issues
...
Fix Semigroup import for GHC 8.2.2 and Windows build issues.
2020-12-02 07:39:05 +00:00
Harendra Kumar
b85002bddb
Simplify the implementation
...
* Do not use a seperate traversal of dirs, instead just call addToWatch
recursively.
* Keep rel path of subdir in the map instead of keeping absolute path
* Keep the same default for recursive watch on Windows/Linux
* Use watchTreesWith to implement watchPathsWith using recursive flag
Refactor, add some todos for test code
2020-12-02 07:39:05 +00:00
Ranjeet Ranjan
f00008b321
Add recursive directory tree events in Linux
2020-12-02 07:39:05 +00:00
adithyaov
8f7c0ddd1e
Modify the current Fold type to handle terminating Folds
...
This commit also includes:
- Changing all other modules accordingly.
- Adding additional helper functions to make life easy
- Using strict types as fold's intermediate result
- Respecting line length of 80 in most cases
2020-12-02 02:21:29 +05:30
Harendra Kumar
cd3ce3e503
Fix formatting and docs
...
* Use let clauses to break bigger expressions
* Use `even` as predicate
2020-11-26 17:11:47 +05:30
Ranjeet Ranjan
60d13da0d6
add mapMaybe combinator in Fold
...
Add benchmarking and test case for mapMaybe combinator of Data.Fold
Fix review comments
2020-11-26 17:11:47 +05:30
pranaysashank
8016730649
Rename test modules to match with corresponding source modules.
2020-11-17 17:50:29 +05:30
pranaysashank
1c3ce1607d
Rename all test-suites to be similar to corresponding modules.
2020-11-17 17:50:29 +05:30
adithyaov
a4291b0119
Fix test description of test:Prelude.Serial.splitOnSuffixSeq
2020-11-12 18:26:18 +05:30
adithyaov
aced27067f
Change the first argument of concatMapM in unfolds from () to Void
...
Change,
concatMapM :: (b -> m (Unfold m () c)) -> Unfold m a b -> Unfold m a c
to,
concatMapM :: (b -> m (Unfold m Void c)) -> Unfold m a b -> Unfold m a c
2020-11-12 09:57:32 +05:30
adithyaov
2ae488776b
Rename functions and make structural adjustments in Prelude.Serial
2020-11-06 05:53:13 +05:30
adithyaov
92ff130caf
Add S.intercalate along with List.intercalate in seq splitting tests
2020-11-06 05:53:13 +05:30
adithyaov
d644962284
Add splitOnSuffixSeq property tests
2020-11-06 05:53:13 +05:30
adithyaov
aaae284415
Abstract out the splitOnSeq property tests
2020-11-06 05:53:13 +05:30
Harendra Kumar
ea40591785
Enable splitOnSeq tests
...
These tests were already written but commented out.
2020-10-30 07:52:29 +05:30
adithyaov
1820919c73
Fix haddock & add tests for sequence split combinators
...
Fix haddock for spliOnSuffixSeq
Add tests for splitOnSeq & spliOnSuffixSeq
2020-10-28 06:49:39 +05:30
pranaysashank
6da528b9bb
Hide tests failing on CI behind DEVBUILD flag.
...
Closes #738
2020-10-26 14:12:19 +05:30
adithyaov
603a722ba1
Make variable naming a little more meaningful in unfold tests
2020-10-24 15:50:28 +05:30
adithyaov
a2d35d9a3a
Modify the argument order of testUnfold-ish helpers & add some docs
2020-10-24 15:50:28 +05:30
adithyaov
e786c09423
Remove redundant stuff & testUnfoldA -> testUnfoldM in unfold tests
2020-10-24 15:50:28 +05:30
adithyaov
de680fb3f5
Create another test group for combination & add concatMapM
2020-10-24 15:50:28 +05:30
adithyaov
e01474b077
Create another test group for transformation & add multiple unfolds
...
Unfolds added:
mapM
mapMWithInput
2020-10-24 15:50:28 +05:30
adithyaov
cf2ae21e78
Fix enumerateFromToFractional in unfold tests
2020-10-24 15:50:28 +05:30
adithyaov
8f0b863c8a
Create another test group for generation & add multiple gen unfolds
...
Unfolds added:
fromStreamK
fromStreamD
unfoldrM
iterateM
fromIndicesM
enumerateFromStepNum
enumerateFromToFractional
2020-10-24 15:50:28 +05:30
adithyaov
3c5d2f875e
Add unfold tests for operations on input
2020-10-24 15:50:28 +05:30