Lines Matching refs:fun
32 forEach(function(fun) { argument
33 assertTrue(isNaN(fun(NaN)));
34 assertTrue(isNaN(fun("abc")));
35 assertTrue(isNaN(fun({})));
36 assertEquals(fun(0), fun([]));
37 assertTrue(isNaN(fun([1, 1])));
38 assertEquals(fun(1.11), fun({ toString: function() { return "1.11"; } }));
39 assertEquals(fun(-3.1), fun({ toString: function() { return -3.1; } }));
40 assertEquals(fun(-1.1), fun({ valueOf: function() { return "-1.1"; } }));
41 assertEquals(fun(3.11), fun({ valueOf: function() { return 3.11; } }));
45 function test_id(fun, rev, value) { argument
46 assertEqualsDelta(1, rev(fun(value))/value, 1E-7);
58 [Math.sinh, Math.asinh, Math.tanh, Math.atanh].forEach(function(fun) { argument
59 assertEquals("-Infinity", String(1/fun(-0)));
60 assertEquals("Infinity", String(1/fun(0)));
64 [Math.sinh, Math.asinh].forEach(function(fun) { argument
65 assertEquals("-Infinity", String(fun(-Infinity)));
66 assertEquals("Infinity", String(fun(Infinity)));
67 assertEquals("-Infinity", String(fun("-Infinity")));
68 assertEquals("Infinity", String(fun("Infinity")));