georgiev955

Untitled

Oct 5th, 2023
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. describe("isSymmetric functionallity", function () {
  2.  
  3. it("should return false", function () {
  4. expect(isSymmetric([-1, 2, 1])).to.be.equal(false);
  5. });
  6.  
  7. it("should return false", function () {
  8. expect(isSymmetric([1, 2, 3, 4, 5, 1])).to.be.equal(false);
  9. });
  10.  
  11. it("should return true", function () {
  12. expect(isSymmetric([2])).to.be.equal(true);
  13. });
  14. it("should return true", function () {
  15. expect(isSymmetric([1, 'hi', { name: 'Pesho' }, new Date(), { name: 'Pesho' }, 'hi', 1])).to.be.equal(true);
  16. });
  17.  
  18. it("should return false", function () {
  19. expect(isSymmetric(4, 5, 5, 4)).to.be.equal(false);
  20. });
  21. });
Advertisement
Add Comment
Please, Sign In to add comment