[email protected] wrote:
[...]
> function assertEquals(a, b) {
>   if (a !== b) { throw new Error(a + ' !== ' + b); }
> }

Just a nitpick, but this isn't the best definition of assertEquals to
use in general (in either Java or JS), because of NaN !== NaN and
-0 === 0. Here it doesn't matter because all of the left-hand sides
were non-NaN and integral.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to