Skip to content

Commit

Permalink
Run autofixer
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Paine <[email protected]>
  • Loading branch information
timkpaine committed Mar 20, 2024
1 parent 47c1c50 commit 93bb0c3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions csp/tests/impl/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,16 +1206,17 @@ class A(csp.Struct):
my_a.a = None

def test_bool_array(self):
''' Test [bool] specific functionality since its special cased as vector<uint8> in C++'''
"""Test [bool] specific functionality since its special cased as vector<uint8> in C++"""

class A(csp.Struct):
l : [bool]
l: [bool]

raw = [True,False,True]
a = A( l = raw )
self.assertTrue( all( a.l[i] is raw[i] for i in range(3)) )
raw = [True, False, True]
a = A(l=raw)
self.assertTrue(all(a.l[i] is raw[i] for i in range(3)))

r = repr(a)
self.assertTrue( repr(raw) in r )
self.assertTrue(repr(raw) in r)


if __name__ == "__main__":
Expand Down

0 comments on commit 93bb0c3

Please sign in to comment.