Skip to content

Commit

Permalink
a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 27, 2024
1 parent 0e3b1f4 commit 281a123
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/css-calc/test/wpt/acos-asin-atan-atan2-computed.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,36 @@ assert.strictEqual(
'0deg',
);

assert.strictEqual(
calc('asin(-0.5)', { toCanonicalUnits: true }),
'-30deg',
);

assert.strictEqual(
calc('asin(-1)', { toCanonicalUnits: true }),
'-90deg',
);

assert.strictEqual(
calc('asin(-1.1)', { toCanonicalUnits: true }),
'calc(NaN * 1rad)',
);

assert.strictEqual(
calc('asin(0.5)', { toCanonicalUnits: true }),
'30deg',
);

assert.strictEqual(
calc('asin(1)', { toCanonicalUnits: true }),
'90deg',
);

assert.strictEqual(
calc('asin(1.1)', { toCanonicalUnits: true }),
'calc(NaN * 1rad)',
);

assert.strictEqual(
calc('atan2(0,0)', { toCanonicalUnits: true }),
'0deg',
Expand Down

0 comments on commit 281a123

Please sign in to comment.