ToxicFrog / vstruct

A Lua library for packing and unpacking binary data, supporting arbitrary (byte-aligned) widths, named fields, and repetition.
https://github.com/ToxicFrog/vstruct
Other
110 stars 14 forks source link

Test modules should use consistent output formats #3

Closed ToxicFrog closed 13 years ago

ToxicFrog commented 13 years ago

The floating-point and basic test modules have different output formats; the test generator has no output at all. All test modules should have consistent output (probably through a common test-report function).

ToxicFrog commented 13 years ago

Fixed in ToxicFrog/vstruct@c7b7c65f3b9b8347686e18c9660dbef071ceda3a

All four current test modules now use test.common to log test results, which groups them by type and reports them in a consistent manner.

The test generator is still kind of noisy when a test fails, but I consider this a good thing; unlike the other tests where you can always double-check the source, the test generator needs to provide enough information to replicate the failing test from scratch.