Mercurial > hgrepos > Python > apps > py-cutils
diff tests/test_crc32.py @ 257:1181d8cb4846
Tests: add a tests for the 32-bit border
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 16 Feb 2025 09:30:23 +0100 |
| parents | d852559df523 |
| children | 7f797d71bd5e |
line wrap: on
line diff
--- a/tests/test_crc32.py Sun Feb 16 09:29:58 2025 +0100 +++ b/tests/test_crc32.py Sun Feb 16 09:30:23 2025 +0100 @@ -120,6 +120,9 @@ self.assertEqual( struct.pack(">I", 3421780262), struct.pack(">i", -873187034)) + self.assertEqual( + struct.pack(">i", -2147483648), + struct.pack(">I", 0x80000000)) if __name__ == "__main__":
