typescript - Jasmine does not evaluate 0 toEqual -0 -
i have test in typescript comparing 2 objects, , results show are:
chrome 57.0.2987 (mac os x 10.12.4) hex should round 1 failed expected hex({ q: 0, r: 0, s: -0 }) equal hex({ q: 0, r: -0, s: 0 }).
how can value of -0 not equal 0 in jasmine? thing can think of is converting string.
('should verify 0 === -0', () => { expect(0).toequal(-0); });
Comments
Post a Comment