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

KST: allow to generate ks-debug tests #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 15 additions & 0 deletions spec/construct/test_debug_array_user.py

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

1 change: 1 addition & 0 deletions spec/construct/test_debug_switch_user.py

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

14 changes: 7 additions & 7 deletions spec/cpp_stl_11/test_debug_array_user.cpp

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

4 changes: 1 addition & 3 deletions spec/cpp_stl_11/test_debug_switch_user.cpp

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

14 changes: 7 additions & 7 deletions spec/cpp_stl_98/test_debug_array_user.cpp

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

4 changes: 1 addition & 3 deletions spec/cpp_stl_98/test_debug_switch_user.cpp

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

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

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

10 changes: 6 additions & 4 deletions spec/go/debug_array_user_test.go

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

15 changes: 8 additions & 7 deletions spec/java/src/io/kaitai/struct/spec/TestDebugArrayUser.java

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

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

14 changes: 8 additions & 6 deletions spec/javascript/test_debug_array_user.js

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

2 changes: 1 addition & 1 deletion spec/javascript/test_debug_switch_user.js

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

12 changes: 12 additions & 0 deletions spec/ks/debug_array_user.kst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: debug_array_user
data: fixed_struct.bin
debug: true
asserts:
- actual: one_cat.meow
expected: 0x50
- actual: array_of_cats[0].meow
expected: 0x41
- actual: array_of_cats[1].meow
expected: 0x43
- actual: array_of_cats[2].meow
expected: 0x4b
1 change: 1 addition & 0 deletions spec/ks/debug_switch_user.kst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
id: debug_switch_user
data: nav_parent_switch.bin
debug: true
asserts:
- actual: code
expected: 1
Expand Down
17 changes: 17 additions & 0 deletions spec/lua/test_debug_array_user.lua

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

2 changes: 1 addition & 1 deletion spec/lua/test_debug_switch_user.lua

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

13 changes: 13 additions & 0 deletions spec/nim/tdebug_array_user.nim

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

1 change: 1 addition & 0 deletions spec/nim/tdebug_switch_user.nim

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

21 changes: 21 additions & 0 deletions spec/perl/TestDebugArrayUser.t

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

1 change: 1 addition & 0 deletions spec/perl/TestDebugSwitchUser.t

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

10 changes: 6 additions & 4 deletions spec/php/DebugArrayUserTest.php

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

2 changes: 1 addition & 1 deletion spec/php/DebugSwitchUserTest.php

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

14 changes: 7 additions & 7 deletions spec/python/test_debug_array_user.py

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

Loading