test: fix floating point NaN tests on mips
authorJames Cowgill <james410@cowgill.org.uk>
Wed, 26 Nov 2014 17:06:19 +0000 (17:06 +0000)
committerFedor Indutny <fedor@indutny.com>
Thu, 27 Nov 2014 15:25:00 +0000 (18:25 +0300)
commit7efc64dc94aab8cee73c243ab901513005de00ed
tree25c3e154066a27745dea21c8ea9085ef4569a87a
parent0f66835ea89b7de2aa1b36c5497a314974dfef8f
test: fix floating point NaN tests on mips

MIPS machines use a slightly different format for NaNs (still perfectly
valid though). This patch adjusts the buffer testcases to allow for
this.

See https://en.wikipedia.org/wiki/NaN#Encoding for some more info.

Based on patch applied to debian by Jérémy Lal <kapouer@melix.org>

Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: https://github.com/joyent/node/pull/8793
test/simple/test-writedouble.js
test/simple/test-writefloat.js