@@ -266,7 +266,7 @@ def test_invalid_struct_field(self):
266
266
parser = ClusterParser (et , self .cluster_id , self .cluster_name )
267
267
cluster = parser .create_cluster ()
268
268
problems = parser .get_problems ()
269
-
269
+
270
270
# Verify the valid field was parsed and the invalid one generated a problem
271
271
asserts .assert_true ("TestStruct" in cluster .structs , "TestStruct not found in parsed structs" )
272
272
struct = cluster .structs ["TestStruct" ]
@@ -384,15 +384,15 @@ def test_invalid_enum_item(self):
384
384
parser = ClusterParser (et , self .cluster_id , self .cluster_name )
385
385
cluster = parser .create_cluster ()
386
386
problems = parser .get_problems ()
387
-
387
+
388
388
# Verify the valid item was parsed and the invalid one generated a problem
389
389
asserts .assert_true ("TestEnum" in cluster .enums , "TestEnum not found in parsed enums" )
390
390
enum = cluster .enums ["TestEnum" ]
391
391
asserts .assert_equal (len (enum .components ), 1 , "Should only have one valid item" )
392
392
asserts .assert_true ("0" in enum .components , "Valid item not found in enum components" )
393
393
asserts .assert_equal (len (problems ), 1 , "Should have one problem for invalid item" )
394
394
asserts .assert_true ("Struct field in TestEnum with no id or name" in problems [0 ].problem ,
395
- "Problem message doesn't match expected error" )
395
+ "Problem message doesn't match expected error" )
396
396
397
397
def test_invalid_bitmap_field (self ):
398
398
"""Test handling of a bitmap with an invalid bitfield (missing bit)"""
@@ -415,15 +415,15 @@ def test_invalid_bitmap_field(self):
415
415
parser = ClusterParser (et , self .cluster_id , self .cluster_name )
416
416
cluster = parser .create_cluster ()
417
417
problems = parser .get_problems ()
418
-
418
+
419
419
# Verify the valid field was parsed and the invalid one generated a problem
420
420
asserts .assert_true ("TestBitmap" in cluster .bitmaps , "TestBitmap not found in parsed bitmaps" )
421
421
bitmap = cluster .bitmaps ["TestBitmap" ]
422
422
asserts .assert_equal (len (bitmap .components ), 1 , "Should only have one valid field" )
423
423
asserts .assert_true ("0" in bitmap .components , "Valid bitfield not found in bitmap components" )
424
424
asserts .assert_equal (len (problems ), 1 , "Should have one problem for invalid bitfield" )
425
425
asserts .assert_true ("Struct field in TestBitmap with no id or name" in problems [0 ].problem ,
426
- "Problem message doesn't match expected error" )
426
+ "Problem message doesn't match expected error" )
427
427
428
428
def test_missing_name (self ):
429
429
"""Test handling of a data type with missing name attribute"""
0 commit comments