@@ -117,61 +117,61 @@ fn type_override() {
117
117
#[ test]
118
118
#[ ignore]
119
119
fn compile_fails_comma_sep ( ) {
120
- simple_trybuild:: compile_fail ( "comma-sep .rs" ) ;
120
+ simple_trybuild:: compile_fail ( "comma_sep .rs" ) ;
121
121
}
122
122
123
123
#[ test]
124
124
#[ ignore]
125
125
fn compile_fails_double_commas ( ) {
126
- simple_trybuild:: compile_fail ( "double-commas .rs" ) ;
126
+ simple_trybuild:: compile_fail ( "double_commas .rs" ) ;
127
127
}
128
128
129
129
#[ test]
130
130
#[ ignore]
131
131
fn compile_fails_only_comma ( ) {
132
- simple_trybuild:: compile_fail ( "only-comma .rs" ) ;
132
+ simple_trybuild:: compile_fail ( "only_comma .rs" ) ;
133
133
}
134
134
135
135
#[ test]
136
136
#[ ignore]
137
137
fn compile_fails_single_argument ( ) {
138
- simple_trybuild:: compile_fail ( "single-argument .rs" ) ;
138
+ simple_trybuild:: compile_fail ( "single_argument .rs" ) ;
139
139
}
140
140
141
141
#[ test]
142
142
#[ ignore]
143
143
fn compile_fails_triple_arguments ( ) {
144
- simple_trybuild:: compile_fail ( "triple-arguments .rs" ) ;
144
+ simple_trybuild:: compile_fail ( "triple_arguments .rs" ) ;
145
145
}
146
146
147
147
#[ test]
148
148
#[ ignore]
149
149
fn compile_fails_only_arrow ( ) {
150
- simple_trybuild:: compile_fail ( "only-arrow .rs" ) ;
150
+ simple_trybuild:: compile_fail ( "only_arrow .rs" ) ;
151
151
}
152
152
153
153
#[ test]
154
154
#[ ignore]
155
155
fn compile_fails_two_arrows ( ) {
156
- simple_trybuild:: compile_fail ( "two-arrows .rs" ) ;
156
+ simple_trybuild:: compile_fail ( "two_arrows .rs" ) ;
157
157
}
158
158
159
159
#[ test]
160
160
#[ ignore]
161
161
fn compile_fails_leading_comma ( ) {
162
- simple_trybuild:: compile_fail ( "leading-comma .rs" ) ;
162
+ simple_trybuild:: compile_fail ( "leading_comma .rs" ) ;
163
163
}
164
164
165
165
#[ test]
166
166
#[ ignore]
167
167
fn compile_fails_no_comma ( ) {
168
- simple_trybuild:: compile_fail ( "no-comma .rs" ) ;
168
+ simple_trybuild:: compile_fail ( "no_comma .rs" ) ;
169
169
}
170
170
171
171
#[ test]
172
172
#[ ignore]
173
173
fn compile_fails_missing_argument ( ) {
174
- simple_trybuild:: compile_fail ( "missing-argument .rs" ) ;
174
+ simple_trybuild:: compile_fail ( "missing_argument .rs" ) ;
175
175
}
176
176
177
177
mod simple_trybuild {
@@ -189,7 +189,7 @@ mod simple_trybuild {
189
189
file_path. into_os_string( )
190
190
) ;
191
191
192
- let test_name = file_name. replace ( '.' , "-" ) ;
192
+ let test_name = file_name. strip_suffix ( ".rs" ) . unwrap ( ) ;
193
193
let macros_dir = [ ".." , ".." , "target" , "tests" , "macros" ]
194
194
. iter ( )
195
195
. collect :: < PathBuf > ( ) ;
0 commit comments