File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ await describe('string-to-numeric', async () => {
7
7
await it ( 'Converts simple strings into numeric values' , ( ) => {
8
8
assert . strictEqual ( stringToNumeric ( '33' ) , 33 ) ;
9
9
assert . strictEqual ( stringToNumeric ( '1.1' ) , 1.1 ) ;
10
+ assert . strictEqual ( stringToNumeric ( '5e+2' ) , 500 ) ;
10
11
} ) ;
11
12
await it ( 'Converts strings with thousands separators into numeric values' , ( ) => {
12
13
assert . strictEqual ( stringToNumeric ( '1,234.1' ) , 1234.1 ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ await describe('string-to-numeric', async () => {
10
10
await it ( 'Converts simple strings into numeric values' , ( ) => {
11
11
assert . strictEqual ( stringToNumeric ( '33' ) , 33 )
12
12
assert . strictEqual ( stringToNumeric ( '1.1' ) , 1.1 )
13
+ assert . strictEqual ( stringToNumeric ( '5e+2' ) , 500 )
13
14
} )
14
15
15
16
await it ( 'Converts strings with thousands separators into numeric values' , ( ) => {
You can’t perform that action at this time.
0 commit comments