Re: [Qemu-devel] [PATCH 3/3] Add test suite for json marshalling

2009-11-18 Thread Markus Armbruster
Jamie Lokier writes: > Anthony Liguori wrote: >> After checking that we can demarshal, marshal again and compared to >> the expected decoded value. This doesn't work so well for floats >> because they cannot be accurately represented in decimal but we try >> our best. > > Good sprintf/scanf/strt

Re: [Qemu-devel] [PATCH 3/3] Add test suite for json marshalling

2009-11-15 Thread Jamie Lokier
Anthony Liguori wrote: > Jamie Lokier wrote: > >Anthony Liguori wrote: > > > >>After checking that we can demarshal, marshal again and compared to > >>the expected decoded value. This doesn't work so well for floats > >>because they cannot be accurately represented in decimal but we try > >>our

Re: [Qemu-devel] [PATCH 3/3] Add test suite for json marshalling

2009-11-13 Thread Anthony Liguori
Jamie Lokier wrote: Anthony Liguori wrote: After checking that we can demarshal, marshal again and compared to the expected decoded value. This doesn't work so well for floats because they cannot be accurately represented in decimal but we try our best. Good sprintf/scanf/strtod imple

Re: [Qemu-devel] [PATCH 3/3] Add test suite for json marshalling

2009-11-12 Thread Jamie Lokier
Anthony Liguori wrote: > After checking that we can demarshal, marshal again and compared to > the expected decoded value. This doesn't work so well for floats > because they cannot be accurately represented in decimal but we try > our best. Good sprintf/scanf/strtod implementations do guarantee

[Qemu-devel] [PATCH 3/3] Add test suite for json marshalling

2009-11-11 Thread Anthony Liguori
By reusing the qjson test suite. After checking that we can demarshal, marshal again and compared to the expected decoded value. This doesn't work so well for floats because they cannot be accurately represented in decimal but we try our best. Signed-off-by: Anthony Liguori --- check-qjson.c |