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

Put generic test cases as TOML, not inside a custom macro #37

Open
lo48576 opened this issue Apr 14, 2024 · 0 comments
Open

Put generic test cases as TOML, not inside a custom macro #37

lo48576 opened this issue Apr 14, 2024 · 0 comments
Labels
low-priority Low priority

Comments

@lo48576
Copy link
Owner

lo48576 commented Apr 14, 2024

Currently, generic test cases are stored as a native Rust value written using a macro.
This prevents auto-formatting and reduces the flexibility and maintainability of the test cases schema.

https://github.com/lo48576/iri-string/blob/bb71787bb920cb1bfdd2d455954b7a2e740a161a/tests/components/mod.rs

They are static data, so they should be stored on some well-known format such as TOML.
It requires additional dev-dependencies (only for testing), but is worth doing.

@lo48576 lo48576 added the low-priority Low priority label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-priority Low priority
Projects
None yet
Development

No branches or pull requests

1 participant