Skip to content

Use parameterization to simplify tests #1552

@hdost

Description

@hdost

Consider the use of parameterized tests for scenarios where only the inputs and expected outputs differ, to reduce redundant test code. Rust doesn't support it directly, but there are external crates providing this option e.g., - https://crates.io/crates/parameterized_test , or we can create a custom macro as suggested here - https://stackoverflow.com/questions/34662713/how-can-i-create-parameterized-tests-in-rust/

Not related to this PR, for future :)

Originally posted by @lalitb in #1516 (comment)

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershackathonTemp label for https://switzerland2025.hack-commit-pu.sh/help wantedGood for taking. Extra help will be provided by maintainers/approvers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions