Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test to distinguish equality validation of bytes vs. strings. #93

Merged
merged 2 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions formats/valid_fail_eq_str.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
meta:
id: valid_fail_eq_str
encoding: ASCII
seq:
- id: foo
size: 4
type: str
valid: '"BACK"' # there is actually "PACK" in the file
3 changes: 3 additions & 0 deletions spec/ks/valid_fail_eq_str.kst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id: valid_fail_eq_str
data: fixed_struct.bin
exception: ValidationNotEqualError<str>
13 changes: 13 additions & 0 deletions spec/ruby/valid_fail_eq_str_spec.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.