Skip to content

Commit 83b308e

Browse files
committed
Add assertions to test_total_ord for str
1 parent 49c7878 commit 83b308e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcollectionstest/str.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ fn test_escape_default() {
697697

698698
#[test]
699699
fn test_total_ord() {
700-
"1234".cmp("123") == Greater;
701-
"123".cmp("1234") == Less;
702-
"1234".cmp("1234") == Equal;
703-
"12345555".cmp("123456") == Less;
704-
"22".cmp("1234") == Greater;
700+
assert_eq!("1234".cmp("123"), Greater);
701+
assert_eq!("123".cmp("1234"), Less);
702+
assert_eq!("1234".cmp("1234"), Equal);
703+
assert_eq!("12345555".cmp("123456"), Less);
704+
assert_eq!("22".cmp("1234"), Greater);
705705
}
706706

707707
#[test]

0 commit comments

Comments
 (0)