Skip to content

Commit

Permalink
Add tests for pf.k=v syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 22, 2015
1 parent 2d31c11 commit 11b63e1
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion t/cmd_pf
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
#!/bin/sh

# GPL 3+ - Copyright (C) 2014
# GPL 3+ - Copyright (C) 2014-2015

[ -e tests.sh ] && . ./tests.sh || . ../tests.sh

NAME='seteq'
FILE=malloc://1024
ARGS=
CMDS='pf.foo xd foo bar
pf.foo
'
EXPECT="foo : 0x00000000 = 0x00000000
bar : 0x00000004 = 0
"
run_test

NAME='seteq2'
FILE=malloc://1024
ARGS=
CMDS='pf.foo=xd foo bar
pf.foo
'
EXPECT="foo : 0x00000000 = 0x00000000
bar : 0x00000004 = 0
"
run_test

NAME='types'
FILE=malloc://1024
ARGS=
Expand Down

0 comments on commit 11b63e1

Please sign in to comment.