Auto merge of #34173 - srinivasreddy:rm_redundant, r=alexcrichton
remove redundant assert statements
This commit is contained in:
@@ -123,8 +123,6 @@ macro_rules! test_concat {
|
||||
fn test_concat_for_different_types() {
|
||||
test_concat!("ab", vec![s("a"), s("b")]);
|
||||
test_concat!("ab", vec!["a", "b"]);
|
||||
test_concat!("ab", vec!["a", "b"]);
|
||||
test_concat!("ab", vec![s("a"), s("b")]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -194,24 +192,24 @@ fn test_unsafe_slice() {
|
||||
|
||||
#[test]
|
||||
fn test_starts_with() {
|
||||
assert!(("".starts_with("")));
|
||||
assert!(("abc".starts_with("")));
|
||||
assert!(("abc".starts_with("a")));
|
||||
assert!((!"a".starts_with("abc")));
|
||||
assert!((!"".starts_with("abc")));
|
||||
assert!((!"ödd".starts_with("-")));
|
||||
assert!(("ödd".starts_with("öd")));
|
||||
assert!("".starts_with(""));
|
||||
assert!("abc".starts_with(""));
|
||||
assert!("abc".starts_with("a"));
|
||||
assert!(!"a".starts_with("abc"));
|
||||
assert!(!"".starts_with("abc"));
|
||||
assert!(!"ödd".starts_with("-"));
|
||||
assert!("ödd".starts_with("öd"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ends_with() {
|
||||
assert!(("".ends_with("")));
|
||||
assert!(("abc".ends_with("")));
|
||||
assert!(("abc".ends_with("c")));
|
||||
assert!((!"a".ends_with("abc")));
|
||||
assert!((!"".ends_with("abc")));
|
||||
assert!((!"ddö".ends_with("-")));
|
||||
assert!(("ddö".ends_with("dö")));
|
||||
assert!("".ends_with(""));
|
||||
assert!("abc".ends_with(""));
|
||||
assert!("abc".ends_with("c"));
|
||||
assert!(!"a".ends_with("abc"));
|
||||
assert!(!"".ends_with("abc"));
|
||||
assert!(!"ddö".ends_with("-"));
|
||||
assert!("ddö".ends_with("dö"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user