msgpack / msgpack-ocaml

MessagePack implementation for OCaml / msgpack.org[OCaml]
45 stars 19 forks source link

fix variant encode bug #7

Closed kokuyouwind closed 9 years ago

kokuyouwind commented 9 years ago

fix failed test

before

$ make test
ocaml setup.ml -build 
Finished, 0 targets (0 cached) in 00:00:00.
Configuration "true: quiet, debug, tests", line 1, characters 20-25:
Warning: the tag "tests" is not used in any flag declaration, so it will have no effect; it may be a typo. Otherwise use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
Finished, 67 targets (54 cached) in 00:00:01.
ocaml setup.ml -test 
......................................................................................................................................
Ran: 134 tests in: 0.20 seconds.
OK
.....F
==============================================================================
Failure: conv:0:conv.ml:5:varint

not equal
------------------------------------------------------------------------------
Ran: 6 tests in: 0.00 seconds.
FAILED: Cases: 6 Tried: 6 Errors: 0 Failures: 1 Skip:  0 Todo: 0 Timeouts: 0.

after

$ make test
ocaml setup.ml -build 
Finished, 0 targets (0 cached) in 00:00:00.
Configuration "true: quiet, debug, tests", line 1, characters 20-25:
Warning: the tag "tests" is not used in any flag declaration, so it will have no effect; it may be a typo. Otherwise use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
Finished, 67 targets (54 cached) in 00:00:01.
ocaml setup.ml -test 
......................................................................................................................................
Ran: 134 tests in: 0.19 seconds.
OK
......
Ran: 6 tests in: 0.00 seconds.
OK
mzp commented 9 years ago

wow