KST: Fix too small input file for expr_io_ternary
test
#118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test requires
1 + 4 + 8 = 13
bytes, butterm_strz.bin
used as input contains only 12 bytes. Strange, but Ruby test was successfully passed -- it seems Ruby runtime has a bug insubstream
implementation. According to that test:https://github.com/kaitai-io/kaitai_struct_ruby_runtime/blob/ecf67519a990296bb1e095363ef2dc414e600502/spec/subio_spec.rb#L70-L76
is it normal for Ruby to be able to read from a stream more that it contains successfully?
This commit replaces too small
term_strz.bin
file withif_struct.bin
which size is 13 bytes.The test was introduced in https://github.com/kaitai-io/kaitai_struct_tests/commits/dceaee2ebf9eb05177e6f5d0effd1b1b907be9ac
cc @GreyCat