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.
- package/package.json +1 -1
- package/sequence/test.js +11 -0
package/package.json
CHANGED
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()
|