Skip to content

Commit

Permalink
Ran restyler
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jan 21, 2022
1 parent 313d4ee commit 3795a0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/idl/test_matter_idl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_global_enum(self):
entries=[
EnumEntry(name="kValue1", code=1),
EnumEntry(name="kOther", code=0x12),
])]
])]
)
self.assertEqual(actual, expected)

Expand All @@ -83,7 +83,8 @@ def test_global_struct(self):
[FieldAttribute.OPTIONAL])),
Field(data_type=DataType(name="int"), code=0x123, name="valueThatIsNullable", attributes=set(
[FieldAttribute.NULLABLE])),
Field(data_type=DataType(name="char_string", max_length=123), code=222, name="sized_string", attributes=set()),
Field(data_type=DataType(name="char_string", max_length=123),
code=222, name="sized_string", attributes=set()),
])]
)
self.assertEqual(actual, expected)
Expand Down Expand Up @@ -185,7 +186,7 @@ def test_cluster_enum(self):
entries=[
EnumEntry(name="A", code=0x123),
EnumEntry(name="B", code=0x234),
])],
])],
)])
self.assertEqual(actual, expected)

Expand All @@ -206,7 +207,7 @@ def test_cluster_events(self):
events=[
Event(priority=EventPriority.CRITICAL, name="StartUp", code=0, fields=[
Field(data_type=DataType(name="INT32U"),
code=0, name="softwareVersion"),
code=0, name="softwareVersion"),
]),
Event(priority=EventPriority.INFO,
name="Hello", code=1, fields=[]),
Expand Down

0 comments on commit 3795a0d

Please sign in to comment.