From b76684676fddb3e9646989d3c3af8c890bb71216 Mon Sep 17 00:00:00 2001 From: Mingun Date: Fri, 27 Sep 2024 00:52:47 +0500 Subject: [PATCH] Add tests for checking unknown types and enums in array elements I saw earlier that there probably was problems with processing of array types, when such errors inside them not reported. Add tests to ensure that they are being checked --- formats_err/type_unknown_many.ksy | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/formats_err/type_unknown_many.ksy b/formats_err/type_unknown_many.ksy index 5bac5046..236b2703 100644 --- a/formats_err/type_unknown_many.ksy +++ b/formats_err/type_unknown_many.ksy @@ -7,6 +7,12 @@ # type_unknown_many.ksy: /seq/2/enum: # error: unable to find enum 'unknown_enum', searching from 'type_unknown_many' # +# type_unknown_many.ksy: /seq/3/type: +# error: unable to find type 'unknown_type_in_array', searching from 'type_unknown_many' +# +# type_unknown_many.ksy: /seq/4/enum: +# error: unable to find enum 'unknown_enum_in_array', searching from 'type_unknown_many' +# meta: id: type_unknown_many ks-opaque-types: false @@ -18,3 +24,10 @@ seq: - id: baz type: u1 enum: unknown_enum + - id: type_in_array + type: unknown_type_in_array + repeat: eos + - id: enum_in_array + type: u1 + enum: unknown_enum_in_array + repeat: eos