Skip to content

Commit

Permalink
Add format+KST debug_switch_user
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Jan 11, 2020
1 parent 02a3b3a commit 0adf5cf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions formats/debug_switch_user.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta:
id: debug_switch_user
endian: le
ks-debug: true
seq:
- id: code
type: u1
- id: data
type:
switch-on: code
cases:
1: one
2: two
types:
one:
seq:
- id: val
type: s2
two:
seq:
- id: val
type: u2
7 changes: 7 additions & 0 deletions spec/ks/debug_switch_user.kst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id: debug_switch_user
data: nav_parent_switch.bin
asserts:
- actual: code
expected: 1
- actual: data.as<debug_switch_user::one>.val
expected: -190

0 comments on commit 0adf5cf

Please sign in to comment.