Skip to content

Commit

Permalink
Update RGB arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Varg committed Nov 27, 2024
1 parent 57a92e7 commit 2a2ac6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/code.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ end
});

test('function argument gets converted to number', () => {
runTestFile(api, ` x = rgb('123', '231', 321) `);
expect(api.readVariable('x')).toBe(-6277);
runTestFile(api, ` x = rgb('12', '234', 32) `);
expect(api.readVariable('x')).toBe(-14620148);
});

test('function argument cant be converted to number', () => {
Expand Down

0 comments on commit 2a2ac6a

Please sign in to comment.