diff options
Diffstat (limited to 'buildscripts/idl/tests/test_binder.py')
-rw-r--r-- | buildscripts/idl/tests/test_binder.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/buildscripts/idl/tests/test_binder.py b/buildscripts/idl/tests/test_binder.py index 5502b69d366..5a086885b5b 100644 --- a/buildscripts/idl/tests/test_binder.py +++ b/buildscripts/idl/tests/test_binder.py @@ -751,6 +751,22 @@ class TestBinder(testcase.IDLTestcase): optional: true """), idl.errors.ERROR_ID_ILLEGAL_FIELD_DEFAULT_AND_OPTIONAL) + # Test duplicate comparison order + self.assert_bind_fail(test_preamble + textwrap.dedent(""" + structs: + foo: + description: foo + strict: false + generate_comparison_operators: true + fields: + foo: + type: string + comparison_order: 1 + bar: + type: string + comparison_order: 1 + """), idl.errors.ERROR_ID_IS_DUPLICATE_COMPARISON_ORDER) + def test_ignored_field_negative(self): # type: () -> None """Test that if a field is marked as ignored, no other properties are set.""" |