Skip to content

Commit b766846

Browse files
committed
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
1 parent e4cf10e commit b766846

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

formats_err/type_unknown_many.ksy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
# type_unknown_many.ksy: /seq/2/enum:
88
# error: unable to find enum 'unknown_enum', searching from 'type_unknown_many'
99
#
10+
# type_unknown_many.ksy: /seq/3/type:
11+
# error: unable to find type 'unknown_type_in_array', searching from 'type_unknown_many'
12+
#
13+
# type_unknown_many.ksy: /seq/4/enum:
14+
# error: unable to find enum 'unknown_enum_in_array', searching from 'type_unknown_many'
15+
#
1016
meta:
1117
id: type_unknown_many
1218
ks-opaque-types: false
@@ -18,3 +24,10 @@ seq:
1824
- id: baz
1925
type: u1
2026
enum: unknown_enum
27+
- id: type_in_array
28+
type: unknown_type_in_array
29+
repeat: eos
30+
- id: enum_in_array
31+
type: u1
32+
enum: unknown_enum_in_array
33+
repeat: eos

0 commit comments

Comments
 (0)