Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("isSymmetric functionallity", function () {
- it("should return false", function () {
- expect(isSymmetric([-1, 2, 1])).to.be.equal(false);
- });
- it("should return false", function () {
- expect(isSymmetric([1, 2, 3, 4, 5, 1])).to.be.equal(false);
- });
- it("should return true", function () {
- expect(isSymmetric([2])).to.be.equal(true);
- });
- it("should return true", function () {
- expect(isSymmetric([1, 'hi', { name: 'Pesho' }, new Date(), { name: 'Pesho' }, 'hi', 1])).to.be.equal(true);
- });
- it("should return false", function () {
- expect(isSymmetric(4, 5, 5, 4)).to.be.equal(false);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment