Skip to content

Commit

Permalink
Add tests for checking unknown types and enums in array elements
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mingun committed Oct 5, 2024
1 parent e4cf10e commit b766846
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions formats_err/type_unknown_many.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b766846

Please sign in to comment.