@@ -670,7 +670,7 @@ mod should_show_correct_errors {
670
670
}
671
671
672
672
#[ test]
673
- fn if_define_case_that_is_already_an_injected_fixture ( ) {
673
+ fn if_define_a_case_arg_that_is_already_an_injected_fixture ( ) {
674
674
let ( output, name) = execute ( ) ;
675
675
676
676
assert_in ! ( output. stderr. str ( ) , format!( "
@@ -743,6 +743,32 @@ mod should_show_correct_errors {
743
743
name) . unindent( ) ) ;
744
744
}
745
745
746
+ #[ test]
747
+ fn if_define_value_list_that_is_already_a_case_arg ( ) {
748
+ let ( output, name) = execute ( ) ;
749
+
750
+ assert_in ! ( output. stderr. str ( ) , format!( "
751
+ error: Duplicate argument: 'a' is already defined.
752
+ --> {}/src/lib.rs:75:23
753
+ |
754
+ 75 | #[rstest(a, case(42), a => [42])]
755
+ | ^" ,
756
+ name) . unindent( ) ) ;
757
+ }
758
+
759
+ #[ test]
760
+ fn if_define_a_case_arg_that_is_already_a_value_list ( ) {
761
+ let ( output, name) = execute ( ) ;
762
+
763
+ assert_in ! ( output. stderr. str ( ) , format!( "
764
+ error: Duplicate argument: 'a' is already defined.
765
+ --> {}/src/lib.rs:78:21
766
+ |
767
+ 78 | #[rstest(a => [42], a, case(42))]
768
+ | ^" ,
769
+ name) . unindent( ) ) ;
770
+ }
771
+
746
772
#[ test]
747
773
fn if_a_value_contains_empty_list ( ) {
748
774
let ( output, name) = execute ( ) ;
0 commit comments