-
Notifications
You must be signed in to change notification settings - Fork 40
Parse '-' in numeric values used in test case #19
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestspikeNeed to research topic more to come up with a solutionNeed to research topic more to come up with a solution
Description
For:
#[test_case(15, 15)]
#[test_case(-15, 15)]
fn test_abs(value: f64, expected: f64) {
assert_eq!(value.abs(), expected)
}We get error:
error[E0428]: the name
_15_15is defined multiple times
--> src/test.rs
|
| #[test_case(15, 15)]
| ^^^^^^^^^^^^^^^^^^^^
| |
| previous definition of the value_15_15here
|_15_15redefined here
|
= note:_15_15must be defined only once in the value namespace of this mod
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestspikeNeed to research topic more to come up with a solutionNeed to research topic more to come up with a solution