Skip to content

Commit c303837

Browse files
author
Bart Veneman
committed
more tests for exotic notation, closes #2
1 parent 0894061 commit c303837

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ test_convert('exotic notations (s)', () => {
7474
assert.is(convert('2e3s'), 2_000_000)
7575
assert.is(convert('+1e1s'), 10_000)
7676
assert.is(convert('-3e5s'), -300_000_000)
77+
assert.is(convert('-3.4e-2s'), -34)
7778
})
7879

7980
test_convert('exotic notations (ms)', () => {
8081
assert.is(convert('2e3ms'), 2_000)
8182
assert.is(convert('+1e1ms'), 10)
8283
assert.is(convert('-3e5ms'), -300_000)
84+
assert.is(convert('-3.4e-2ms'), -.034)
8385
})
8486

8587
test_convert('converts `var(--foo)`', () => {

0 commit comments

Comments
 (0)