Add a first test for 'pf'

All the bytes written should be handled. It shows ffff because deadbeef is a dword and its reading a qword. Just append some zeroes (8) to the wx.

Also, also, it would be good to do smaller tests, and use named fields (pf xx foo bar)



> On 09 Jul 2014, at 21:25, Hyask <notifications@github.com> wrote:
> 
> In t/cmd_pf:
> 
> > + int : 0x00000006 = 666 
> > +"
> > +run_test
> > +
> > +NAME='more types'
> > +FILE=malloc://1024
> > +ARGS=
> > +CMDS='wx a00f00002a4b9a020000addeefbeadde
> > +pf fcbiwq float char byte int word quadword
> > +'
> > +EXPECT="   float : 0x00000000 = 4000.000000
> > +    char : 0x00000004 = 42 ; 42 ; '*' 
> > +    byte : 0x00000005 = 75 ; 0x4b ; 'K' 
> > +     int : 0x00000006 = 666 
> > +    word : 0x0000000a = 0xdead 
> > +quadword : 0x0000000c = (qword) 0xffffffffdeadbeef 
> Souldn't we expect 0x00000000deadbeef ?
> 
> —
> Reply to this email directly or view it on GitHub.