Skip to content

Commit

Permalink
more tests for exotic notation, closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Veneman committed Apr 14, 2024
1 parent 0894061 commit c303837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ test_convert('exotic notations (s)', () => {
assert.is(convert('2e3s'), 2_000_000)
assert.is(convert('+1e1s'), 10_000)
assert.is(convert('-3e5s'), -300_000_000)
assert.is(convert('-3.4e-2s'), -34)
})

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

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

0 comments on commit c303837

Please sign in to comment.