Registry / testing / test-case

test-case

JSON →
library3.3.1rscratesunverified

Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily.

# Cargo.toml [dependencies] test-case = "3.3.1"
INSTALL
IMPORT
SIG · TEST-CASE
T
test-case
testingrustv3.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

test_case
use test_case::test_case;

Parameterized test with multiple inputs

use test_case::test_case; #[test_case(2, 4)] #[test_case(3, 9)] fn test_square(x: i32, expected: i32) { assert_eq!(x * x, expected); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
test-case — cargo add test-case · libregistry