Skip to content

Commit c605480

Browse files
committed
clean up for test cases
1 parent c6ed7ad commit c605480

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/libcollectionstest/str.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -192,24 +192,24 @@ fn test_unsafe_slice() {
192192

193193
#[test]
194194
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"));
202202
}
203203

204204
#[test]
205205
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ö"));
213213
}
214214

215215
#[test]

0 commit comments

Comments
 (0)