Skip to content

Commit

Permalink
add endianness explicity, fixes issue #127
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanschnell committed Jun 11, 2021
1 parent 32630a6 commit bb8d591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitarray/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ def test_bitwise(self):
n = randint(0, len(a))
if a.endian() == 'big':
self.assertEqual(ba2int(a >> n), i >> n)
c = zeros(len(a)) + a
c = zeros(len(a), 'big') + a
self.assertEqual(ba2int(c << n), i << n)

self.assertEQUAL(a, aa)
Expand Down Expand Up @@ -1131,7 +1131,7 @@ def test_bitwise_inplace(self):
c = a.copy()
c >>= n
self.assertEqual(ba2int(c), i >> n)
c = zeros(len(a)) + a
c = zeros(len(a), 'big') + a
c <<= n
self.assertEqual(ba2int(c), i << n)

Expand Down

0 comments on commit bb8d591

Please sign in to comment.