Skip to content

Commit

Permalink
Fix tests failed after kaitai-io/kaitai_struct_compiler#269 (8aeb79a0…
Browse files Browse the repository at this point in the history
…069a708bd10cc5b4cc4e3ddf89f58289)

Fixes

[info] - expr_bytes_to_s_arg0 *** FAILED ***
[info]   expr_bytes_to_s_arg0.ksy: /instances/bad/value:
[info]   	error: wrong arguments to method call `to_s` on byte array: expected (string), got ()
[info]    did not equal expr_bytes_to_s_arg0.ksy: /instances/bad/value:
[info]   	error: to_s: expected 1 argument, got 0 (SimpleMatchers.scala:34)
[info] - expr_bytes_to_s_arg2 *** FAILED ***
[info]   expr_bytes_to_s_arg2.ksy: /instances/bad/value:
[info]   	error: wrong arguments to method call `to_s` on byte array: expected (string), got (Str(foo), Str(bar))
[info]    did not equal expr_bytes_to_s_arg2.ksy: /instances/bad/value:
[info]   	error: to_s: expected 1 argument, got 2 (SimpleMatchers.scala:34)
[info] - expr_bytes_to_s_type *** FAILED ***
[info]   expr_bytes_to_s_type.ksy: /instances/bad/value:
[info]   	error: wrong arguments to method call `to_s` on byte array: expected (string), got (IntNum(123))
[info]    did not equal expr_bytes_to_s_type.ksy: /instances/bad/value:
[info]   	error: to_s: argument #0: expected string literal, got IntNum(123) (SimpleMatchers.scala:34)
  • Loading branch information
Mingun committed Mar 9, 2024
1 parent 8145240 commit 6a0803e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion formats_err/expr_bytes_to_s_arg0.ksy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# expr_bytes_to_s_arg0.ksy: /instances/bad/value:
# error: to_s: expected 1 argument, got 0
# error: wrong arguments to method call `to_s` on byte array: expected (string), got ()
#
meta:
id: expr_bytes_to_s_arg0
Expand Down
2 changes: 1 addition & 1 deletion formats_err/expr_bytes_to_s_arg2.ksy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# expr_bytes_to_s_arg2.ksy: /instances/bad/value:
# error: to_s: expected 1 argument, got 2
# error: wrong arguments to method call `to_s` on byte array: expected (string), got (Str(foo), Str(bar))
#
meta:
id: expr_bytes_to_s_arg2
Expand Down
2 changes: 1 addition & 1 deletion formats_err/expr_bytes_to_s_type.ksy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# expr_bytes_to_s_type.ksy: /instances/bad/value:
# error: to_s: argument #0: expected string literal, got IntNum(123)
# error: wrong arguments to method call `to_s` on byte array: expected (string), got (IntNum(123))
#
meta:
id: expr_bytes_to_s_type
Expand Down

0 comments on commit 6a0803e

Please sign in to comment.