public function testIsNaN() { // from js $this->assertFalse(__::isNaN(null), 'null not not NaN'); $this->assertFalse(__::isNaN(0), '0 is not NaN'); $this->assertTrue(__::isNaN(acos(8)), 'but invalid calculations are'); // extra $this->assertFalse(__(null)->isNan(), 'null is not NaN with OO-style call'); $this->assertFalse(__(0)->isNan(), '0 is not NaN with OO-style call'); $this->assertTrue(__(acos(8))->isNaN(), 'but invalid calculations are with OO-style call'); // docs $this->assertFalse(__::isNaN(null)); $this->assertTrue(__::isNaN(acos(8))); }
public function testIsNaN() { // from js $this->assertFalse(__::isNaN(null), 'null not not NaN'); $this->assertFalse(__::isNaN(0), '0 is not NaN'); $this->assertTrue(__::isNaN(acos(8)), 'but invalid calculations are'); // extra // docs $this->assertFalse(__::isNaN(null)); $this->assertTrue(__::isNaN(acos(8))); }