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 Mar 30, 2024
1 parent 5f78b7a commit 51beaca
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)

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 51beaca

Please sign in to comment.