it ("tests a positive zero", function() {
expect((Math.sin(-1*Math.PI)*300).toFixed(3)).toEqual("0.000");
});
But it fails, because it yields -0.000 (tested on chrome and safari). Removing the – with a regexp.replace is my last (and currently only solution) are there more?
1 Answer