2009/12/4 David-Sarah Hopwood <[email protected]>:
> [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.

Yep.   This was just testbed code -- never submitted.


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

Reply via email to