diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/cyclist/test.js | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/cyclist/test.js')
-rw-r--r-- | node_modules/cyclist/test.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/node_modules/cyclist/test.js b/node_modules/cyclist/test.js deleted file mode 100644 index 2710a63..0000000 --- a/node_modules/cyclist/test.js +++ /dev/null @@ -1,37 +0,0 @@ -var tape = require('tape') -var cyclist = require('./') - -tape('basic put and get', function (t) { - var list = cyclist(2) - list.put(0, 'hello') - list.put(1, 'world') - t.same(list.get(0), 'hello') - t.same(list.get(1), 'world') - t.end() -}) - -tape('overflow put and get', function (t) { - var list = cyclist(2) - list.put(0, 'hello') - list.put(1, 'world') - list.put(2, 'verden') - t.same(list.get(0), 'verden') - t.same(list.get(1), 'world') - t.same(list.get(2), 'verden') - t.end() -}) - -tape('del', function (t) { - var list = cyclist(2) - list.put(0, 'hello') - t.same(list.get(0), 'hello') - list.del(0) - t.ok(!list.get(0)) - t.end() -}) - -tape('multiple of two', function (t) { - var list = cyclist(3) - t.same(list.size, 4) - t.end() -}) |