Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests against reference libraries #20

Open
gendx opened this issue Dec 11, 2019 · 1 comment
Open

Add tests against reference libraries #20

gendx opened this issue Dec 11, 2019 · 1 comment

Comments

@gendx
Copy link
Owner

gendx commented Dec 11, 2019

To check that the implementation is correct, there should be tests against reference libraries such as https://crates.io/crates/lzma-sys, for example:

  • compressing with one implementation and decompressing with the other,
  • decompressing with both implementations and checking that the result (or error) is the same.
@gendx gendx added the testing label Dec 11, 2019
@Shnatsel
Copy link
Contributor

I had the same idea. Fuzzing can be of great help for discovering actually interesting inputs. This sounds fairly trivial, I'll see if I can whip up an implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants