Skip to content

Commit

Permalink
Add test for signed 32 bit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Nov 9, 2022
1 parent f2cee9f commit 7b582ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/php/img/unittest/ColorTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ public function string_representation() {
public function argb_color_int($argb) {
$this->assertEquals($argb, (new Color($argb))->intValue());
}

#[Test]
public function argb_signed_32_bit() {
$this->assertEquals(0xff464d32, (new Color(-12169934))->intValue());
}
}

0 comments on commit 7b582ae

Please sign in to comment.