You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
166 B
10 lines
166 B
5 years ago
|
'use strict'
|
||
|
|
||
|
var flip = require('./')
|
||
|
var a = require('assert')
|
||
|
|
||
|
a.deepEqual(flip([0,1,1,0], 2, 2), [1,0,0,1])
|
||
|
|
||
|
var x = [0,1,1,0]
|
||
|
a.equal(flip(x, 2, 2), x)
|