Skip to content

Commit

Permalink
Add new test for degC toSI
Browse files Browse the repository at this point in the history
  • Loading branch information
costerwi committed Dec 23, 2023
1 parent 665807c commit 89f2f58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit-tests/type/unit/Unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,7 @@ describe('Unit', function () {
assert.strictEqual(Unit.parse('3 ft').toSI().format(10), '0.9144 m')
assert.strictEqual(Unit.parse('0.111 ft^2').toSI().format(10), '0.01031223744 m^2')
assert.strictEqual(Unit.parse('1 kgf').toSI().toString(), '9.80665 (kg m) / s^2')
assert.strictEqual(Unit.parse('300 degC').toSI().toString(), '573.15 K')
})

it('should return SI units for valueless units', function () {
Expand Down

0 comments on commit 89f2f58

Please sign in to comment.