Initial commit

This commit is contained in:
Luis Fernando Molina committed 2018-09-03 15:19:57 +02:00
commit f47e08fdcb
2409 files changed
+363607

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { setFlagsFromString } from 'v8'
import { range } from '../lib/util'
import test from 'ava'
// 984 by default.
setFlagsFromString('--stack_size=500')
test('should work', (t) => {
const list = range(1, 3)
t.deepEqual(list, [1, 2, 3])
})
test('should work for large ranges', (t) => {
t.notThrows(() => range(1, 1e6))
})