@@ -123,8 +123,6 @@ macro_rules! test_concat {
123
123
fn test_concat_for_different_types ( ) {
124
124
test_concat ! ( "ab" , vec![ s( "a" ) , s( "b" ) ] ) ;
125
125
test_concat ! ( "ab" , vec![ "a" , "b" ] ) ;
126
- test_concat ! ( "ab" , vec![ "a" , "b" ] ) ;
127
- test_concat ! ( "ab" , vec![ s( "a" ) , s( "b" ) ] ) ;
128
126
}
129
127
130
128
#[ test]
@@ -194,24 +192,24 @@ fn test_unsafe_slice() {
194
192
195
193
#[ test]
196
194
fn test_starts_with ( ) {
197
- assert ! ( ( "" . starts_with( "" ) ) ) ;
198
- assert ! ( ( "abc" . starts_with( "" ) ) ) ;
199
- assert ! ( ( "abc" . starts_with( "a" ) ) ) ;
200
- assert ! ( ( !"a" . starts_with( "abc" ) ) ) ;
201
- assert ! ( ( !"" . starts_with( "abc" ) ) ) ;
202
- assert ! ( ( !"ödd" . starts_with( "-" ) ) ) ;
203
- assert ! ( ( "ödd" . starts_with( "öd" ) ) ) ;
195
+ assert ! ( "" . starts_with( "" ) ) ;
196
+ assert ! ( "abc" . starts_with( "" ) ) ;
197
+ assert ! ( "abc" . starts_with( "a" ) ) ;
198
+ assert ! ( !"a" . starts_with( "abc" ) ) ;
199
+ assert ! ( !"" . starts_with( "abc" ) ) ;
200
+ assert ! ( !"ödd" . starts_with( "-" ) ) ;
201
+ assert ! ( "ödd" . starts_with( "öd" ) ) ;
204
202
}
205
203
206
204
#[ test]
207
205
fn test_ends_with ( ) {
208
- assert ! ( ( "" . ends_with( "" ) ) ) ;
209
- assert ! ( ( "abc" . ends_with( "" ) ) ) ;
210
- assert ! ( ( "abc" . ends_with( "c" ) ) ) ;
211
- assert ! ( ( !"a" . ends_with( "abc" ) ) ) ;
212
- assert ! ( ( !"" . ends_with( "abc" ) ) ) ;
213
- assert ! ( ( !"ddö" . ends_with( "-" ) ) ) ;
214
- assert ! ( ( "ddö" . ends_with( "dö" ) ) ) ;
206
+ assert ! ( "" . ends_with( "" ) ) ;
207
+ assert ! ( "abc" . ends_with( "" ) ) ;
208
+ assert ! ( "abc" . ends_with( "c" ) ) ;
209
+ assert ! ( !"a" . ends_with( "abc" ) ) ;
210
+ assert ! ( !"" . ends_with( "abc" ) ) ;
211
+ assert ! ( !"ddö" . ends_with( "-" ) ) ;
212
+ assert ! ( "ddö" . ends_with( "dö" ) ) ;
215
213
}
216
214
217
215
#[ test]
0 commit comments