Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0.43 KB
- it('return true for valid symmetric input', () => {
- expect(isSymmetric([1, 1])).to.true
- })
- it('return false for valid non-symmetric input', () => {
- expect(isSymmetric([1, 2])).to.false
- })
- it('return false for invalid argument', () => {
- expect(isSymmetric('a')).to.false
- })
- it('return false for type-coerced elements', () => {
- expect(isSymmetric(['1', 1])).to.false
- })
Advertisement
Add Comment
Please, Sign In to add comment