Skip to content

Commit cf4e9b6

Browse files
committedMay 24, 2017
Add decimals
1 parent ecada5c commit cf4e9b6

File tree

1 file changed

+9
-9
lines changed
  • lib/node_modules/@stdlib/utils/do-while-each/test

1 file changed

+9
-9
lines changed
 

‎lib/node_modules/@stdlib/utils/do-while-each/test/test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ tape( 'while a test condition is true, the function invokes a provided function
155155
var arr;
156156
var out;
157157

158-
arr = [ 1, 2, NaN, 3 ];
159-
out = [ 0, 0, 0, 0 ];
158+
arr = [ 1.0, 2.0, NaN, 3.0 ];
159+
out = [ 0.0, 0.0, 0.0, 0.0 ];
160160

161161
function predicate( value ) {
162162
return ( value === value );
@@ -190,17 +190,17 @@ tape( 'while a test condition is true, the function invokes a provided function
190190

191191
arr = {
192192
'length': 4,
193-
'0': 1,
194-
'1': 2,
193+
'0': 1.0,
194+
'1': 2.0,
195195
'2': NaN,
196-
'3': 3
196+
'3': 3.0
197197
};
198198
out = {
199199
'length': 4,
200-
'0': 0,
201-
'1': 0,
202-
'2': 0,
203-
'3': 0
200+
'0': 0.0,
201+
'1': 0.0,
202+
'2': 0.0,
203+
'3': 0.0
204204
};
205205

206206
doWhileEach( arr, copy, predicate );

0 commit comments

Comments
 (0)
Please sign in to comment.