Skip to content

Add test case number to automatically distinguish test cases with the same generated name#151

Open
synek317 wants to merge 1 commit intofrondeus:masterfrom
synek317:master
Open

Add test case number to automatically distinguish test cases with the same generated name#151
synek317 wants to merge 1 commit intofrondeus:masterfrom
synek317:master

Conversation

@synek317
Copy link
Contributor

Automatically prepends test_case_1_, test_case_2_ etc. to prevent duplicated test case names in scenarios like

#[test_case(42)]
#[test_case("42")]
fn foo(bar impl std::fmt::Display) {
    assert_eq!("42", &bar.to_string())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant