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 #2

Open
hatkidchan opened this issue Feb 4, 2022 · 1 comment
Open

Add tests #2

hatkidchan opened this issue Feb 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hatkidchan
Copy link
Owner

TODO: add test target to Makefile, as well as test scripts (in Python, Bash or even in C itself?).

Test scripts should download sample images from this issue (TODO: add images) into obj/ folder.

Test scripts should run after running testbuild target or as last step of it. Test scripts should depend on all target.

help wanted label is set, because I need some sample images, if possible. SFW-only, public domain and/or royalty-free only. Self-made content also allowed. Images should be in either PNG or BMP (i.e. lossless compression only) to reduce ambiguity caused by (de-)compression.

@hatkidchan hatkidchan added enhancement New feature or request help wanted Extra attention is needed labels Feb 4, 2022
@hatkidchan hatkidchan self-assigned this Feb 4, 2022
@hatkidchan
Copy link
Owner Author

Test cases should include, but not limit to:

  • Testing for valid JSON in -F json
  • Testing for correct width/height in -F json
  • Testing for correct pixel values
  • Testing for hanging color after -F ansi
  • Testing for valid table structure in -F html
  • Testing for valid palette conversion

TODO: more test cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant