Skip to content

Commit

Permalink
Update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlephAlpha committed Feb 29, 2020
1 parent 0b0c610 commit ac8b597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/derive_props/pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ mod t7 {
value: Foo,
}

fn default_value_should_work() {
fn prop_or_value_should_work() {
let props = Props::builder().build();
assert_eq!(props.value, Foo::One);
Props::builder().value(Foo::Two).build();
Expand All @@ -135,7 +135,7 @@ mod t8 {
value: i32,
}

fn default_value_should_work() {
fn prop_or_else_closure_should_work() {
let props = Props::builder().build();
assert_eq!(props.value, 123);
Props::builder().value(123).build();
Expand All @@ -162,7 +162,7 @@ mod t9 {
"123".parse()
}

fn default_value_with_generics_should_work() {
fn prop_or_else_function_with_generics_should_work() {
let props = Props::<i32>::builder().build();
assert_eq!(props.value, Ok(123));
Props::<i32>::builder().value(Ok(456)).build();
Expand Down

0 comments on commit ac8b597

Please sign in to comment.