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() {
|
fn test_concat_for_different_types() {
|
||||||
test_concat!("ab", vec![s("a"), s("b")]);
|
test_concat!("ab", vec![s("a"), s("b")]);
|
||||||
test_concat!("ab", vec!["a", "b"]);
|
test_concat!("ab", vec!["a", "b"]);
|
||||||
test_concat!("ab", vec!["a", "b"]);
|
|
||||||
test_concat!("ab", vec![s("a"), s("b")]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -194,24 +192,24 @@ fn test_unsafe_slice() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_starts_with() {
|
fn test_starts_with() {
|
||||||
assert!(("".starts_with("")));
|
assert!("".starts_with(""));
|
||||||
assert!(("abc".starts_with("")));
|
assert!("abc".starts_with(""));
|
||||||
assert!(("abc".starts_with("a")));
|
assert!("abc".starts_with("a"));
|
||||||
assert!((!"a".starts_with("abc")));
|
assert!(!"a".starts_with("abc"));
|
||||||
assert!((!"".starts_with("abc")));
|
assert!(!"".starts_with("abc"));
|
||||||
assert!((!"ödd".starts_with("-")));
|
assert!(!"ödd".starts_with("-"));
|
||||||
assert!(("ödd".starts_with("öd")));
|
assert!("ödd".starts_with("öd"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_ends_with() {
|
fn test_ends_with() {
|
||||||
assert!(("".ends_with("")));
|
assert!("".ends_with(""));
|
||||||
assert!(("abc".ends_with("")));
|
assert!("abc".ends_with(""));
|
||||||
assert!(("abc".ends_with("c")));
|
assert!("abc".ends_with("c"));
|
||||||
assert!((!"a".ends_with("abc")));
|
assert!(!"a".ends_with("abc"));
|
||||||
assert!((!"".ends_with("abc")));
|
assert!(!"".ends_with("abc"));
|
||||||
assert!((!"ddö".ends_with("-")));
|
assert!(!"ddö".ends_with("-"));
|
||||||
assert!(("ddö".ends_with("dö")));
|
assert!("ddö".ends_with("dö"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user