From 1302d113ef1964ece02525e0bf1b398feede787543b8e6a875218052690531f6 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 3 Dec 2024 13:17:50 +0300 Subject: [PATCH] Fix terminology There is no general view on how to count the bit indexes. Usually people use most/least significant bit terminology. --- pyac/tests/test_tai.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyac/tests/test_tai.py b/pyac/tests/test_tai.py index 5262e69..a04220e 100644 --- a/pyac/tests/test_tai.py +++ b/pyac/tests/test_tai.py @@ -85,7 +85,7 @@ class TestTAI64(TestCase): self.assertEqual(decoded, Raw(t=0x18, v=bytes.fromhex("7000000065195F65"))) self.assertSequenceEqual(tail, b"") - def test_throws_when_first_bit_is_in_use(self) -> None: + def test_throws_when_msb_is_set(self) -> None: with self.assertRaises(DecodeError) as err: loads(bytes.fromhex("188000000065195F65")) self.assertEqual(str(err.exception), "reserved TAI64 value is in use") @@ -139,7 +139,7 @@ class TestTAI64N(TestCase): ) self.assertSequenceEqual(tail, b"") - def test_throws_when_first_bit_is_in_use(self) -> None: + def test_throws_when_msb_is_set(self) -> None: with self.assertRaises(DecodeError) as err: loads( bytes.fromhex("198000000065195F65") + @@ -195,7 +195,7 @@ class TestTAI64NA(TestCase): )) self.assertSequenceEqual(tail, b"") - def test_throws_when_first_bit_is_in_use(self) -> None: + def test_throws_when_msb_is_set(self) -> None: with self.assertRaises(DecodeError) as err: loads( bytes.fromhex("1A8000000065195F65") + -- 2.50.0