You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -101,7 +101,7 @@ tape( 'the function evaluates the factorial function (positive integers < 35)',
101
101
continue;
102
102
}
103
103
v=factorialf(x[i]);
104
-
t.strictEqual(isAlmostSameValue(v,float64ToFloat32(expected[i]),1),true,'returns expected value when provided '+x[i]+'. Value: '+v+'. Expected: '+expected[i]+'.');
104
+
t.strictEqual(isAlmostSameValue(v,f32(expected[i]),1),true,'returns expected value when provided '+x[i]+'. Value: '+v+'. Expected: '+expected[i]+'.');
105
105
}
106
106
t.end();
107
107
});
@@ -127,18 +127,18 @@ tape( 'the function evaluates the factorial function (decimal values)', function
127
127
for(i=0;i<x.length;i++){
128
128
v=factorialf(x[i]);
129
129
if(isnanf(v)){
130
-
t.strictEqual(isnanf(v),isnanf(float64ToFloat32(expected[i])),'returns NaN for x='+x[i]);
130
+
t.strictEqual(isnanf(v),isnanf(f32(expected[i])),'returns NaN for x='+x[i]);
131
131
continue;
132
132
}
133
133
if(v===PINF){
134
134
t.strictEqual(v,PINF,'returns Infinity for x='+x[i]);
@@ -112,7 +112,7 @@ tape( 'the function evaluates the factorial function (positive integers < 35)',
112
112
continue;
113
113
}
114
114
v=factorialf(x[i]);
115
-
t.strictEqual(isAlmostSameValue(v,float64ToFloat32(expected[i]),1),true,'returns expected value when provided '+x[i]+'. Value: '+v+'. Expected: '+expected[i]+'.');
115
+
t.strictEqual(isAlmostSameValue(v,f32(expected[i]),1),true,'returns expected value when provided '+x[i]+'. Value: '+v+'. Expected: '+expected[i]+'.');
116
116
}
117
117
t.end();
118
118
});
@@ -138,18 +138,18 @@ tape( 'the function evaluates the factorial function (decimal values)', opts, fu
138
138
for(i=0;i<x.length;i++){
139
139
v=factorialf(x[i]);
140
140
if(isnanf(v)){
141
-
t.strictEqual(isnanf(v),isnanf(float64ToFloat32(expected[i])),'returns NaN for x='+x[i]);
141
+
t.strictEqual(isnanf(v),isnanf(f32(expected[i])),'returns NaN for x='+x[i]);
142
142
continue;
143
143
}
144
144
if(v===PINF){
145
145
t.strictEqual(v,PINF,'returns Infinity for x='+x[i]);
0 commit comments