Skip to content

Commit

Permalink
fix I;16N lib pack test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Apr 1, 2024
1 parent 23fead7 commit d19430e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/test_lib_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ def test_I(self) -> None:
)

def test_I16(self) -> None:
self.assert_pack("I;16N", "I;16N", 2, 0x0201, 0x0403, 0x0605)
if sys.byteorder == "little":
self.assert_pack("I;16N", "I;16N", 2, 0x0201, 0x0403, 0x0605)
else:
self.assert_pack("I;16N", "I;16N", 2, 0x0102, 0x0304, 0x0506)

Check warning on line 222 in Tests/test_lib_pack.py

View check run for this annotation

Codecov / codecov/patch

Tests/test_lib_pack.py#L222

Added line #L222 was not covered by tests

def test_F_float(self) -> None:
self.assert_pack("F", "F;32F", 4, 1.539989614439558e-36, 4.063216068939723e-34)
Expand Down

0 comments on commit d19430e

Please sign in to comment.