diff options
| author | Kevin Butler <haqkrs@gmail.com> | 2015-10-22 03:19:14 +0100 |
|---|---|---|
| committer | Kevin Butler <haqkrs@gmail.com> | 2015-10-24 19:53:42 +0100 |
| commit | 83b308e585fda84cf85d7c62a3db6aef3bdcac8c (patch) | |
| tree | 82e6adc11a9938b2467505a2b2436094e3482350 | |
| parent | 49c78789ce7aefd44cc01605dfcb34a3dd066f03 (diff) | |
| download | rust-83b308e585fda84cf85d7c62a3db6aef3bdcac8c.tar.gz rust-83b308e585fda84cf85d7c62a3db6aef3bdcac8c.zip | |
Add assertions to test_total_ord for str
| -rw-r--r-- | src/libcollectionstest/str.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcollectionstest/str.rs b/src/libcollectionstest/str.rs index df9c03cdf91..e22ff7ca540 100644 --- a/src/libcollectionstest/str.rs +++ b/src/libcollectionstest/str.rs @@ -697,11 +697,11 @@ fn test_escape_default() { #[test] fn test_total_ord() { - "1234".cmp("123") == Greater; - "123".cmp("1234") == Less; - "1234".cmp("1234") == Equal; - "12345555".cmp("123456") == Less; - "22".cmp("1234") == Greater; + assert_eq!("1234".cmp("123"), Greater); + assert_eq!("123".cmp("1234"), Less); + assert_eq!("1234".cmp("1234"), Equal); + assert_eq!("12345555".cmp("123456"), Less); + assert_eq!("22".cmp("1234"), Greater); } #[test] |
