functionalscript 0.0.227 → 0.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sequence/test.js +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.227",
3
+ "version": "0.0.228",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sequence/test.js CHANGED
@@ -156,6 +156,17 @@ const stress = () => {
156
156
  const len = _.length(_.filterMap(() => undefined)(result))
157
157
  if (len !== 0) { throw len }
158
158
  }
159
+
160
+ console.log('dropWhile')
161
+
162
+ {
163
+ // 50_000_000 is too much
164
+ const n = 20_000_000
165
+ const result = _.toArray(_.countdown(n))
166
+ if (result.length !== n) { throw result.length }
167
+ const len = _.length(_.dropWhile(() => true)(result))
168
+ if (len !== 0) { throw len }
169
+ }
159
170
  }
160
171
 
161
172
  // stress()