Commit Graph

359 Commits

Author SHA1 Message Date
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
adithyaov
5fb439a2e5 Use a cleaner way to test unfolds with some helpers 2020-10-24 15:50:28 +05:30
pranaysashank
0e04a3ce5b Rename Test/Internal/Data/Parser* to Test/Data/Parser*. 2020-10-22 19:44:55 +05:30
Harendra Kumar
1fd498a537 Update documentation, format, add copyright info 2020-10-21 21:08:15 +05:30
Ranjeet Ranjan
a608695f4a Add Windows file system event handling 2020-10-21 21:08:15 +05:30
pranaysashank
cff03690c6 Refactor ops from Prelude to Prelude.Serial. 2020-10-21 18:30:34 +05:30
pranaysashank
a16a7164d7 Rename pure-streams to Data.List. 2020-10-21 18:30:34 +05:30
pranaysashank
46429454d2 Rename string-test to Streamly.Test.Unicode.Stream. 2020-10-21 16:27:11 +05:30
pranaysashank
7de5e0e53c Move parallel loops test to Prelude. 2020-10-21 16:27:11 +05:30
pranaysashank
16db9cf7e0 Remove nested-loops test suite.
- Add it to the Prelude test suite.
2020-10-21 16:27:11 +05:30
pranaysashank
2f3d30c72d Remove loops test suite.
- It is made redundant by the loops test in Prelude.Common.
2020-10-21 16:27:11 +05:30
pranaysashank
42baf52873 Rename maxrate to Prelude.MaxRate. 2020-10-21 16:27:11 +05:30
pranaysashank
af6205410f Rename internal-prelude test into prelude test suite. 2020-10-21 16:27:07 +05:30
pranaysashank
8061c97a76 Use monadic seed in monadic scanning combinators.
- The following functions are updated: scanlM, scanlM',
  postscanlM, postscanlM', prescanlM'.
- Update Changelog.md.
2020-10-21 10:49:12 +05:30
pranaysashank
345fa5d5de Fix library build with dev flag. 2020-10-20 23:54:09 +05:30