frondeus / frondeus/test-case

Allow replacement of test-case assertion on per-fn scale

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
633
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Currently `test_case` allows replacing it's built in `assert` via `using` and `with` keywords.

We'd like to be able to replace assertion on per-function and global levels. This refers to requirements specified within https://github.com/frondeus/test-case/issues/31.

Initial work specifies
```
#[test_case(input2)]
#[test_case_use(assert_nan)]
fn tested(v: X) -> f64 {
...
}
```
as possible solution for per-function replacements.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.