@@ -192,24 +192,24 @@ fn test_unsafe_slice() {
192
192
193
193
#[ test]
194
194
fn test_starts_with ( ) {
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" ) ) ) ;
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" ) ) ;
202
202
}
203
203
204
204
#[ test]
205
205
fn test_ends_with ( ) {
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ö" ) ) ) ;
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ö" ) ) ;
213
213
}
214
214
215
215
#[ test]
0 commit comments