about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2015-10-22 03:19:14 +0100
committerKevin Butler <haqkrs@gmail.com>2015-10-24 19:53:42 +0100
commit83b308e585fda84cf85d7c62a3db6aef3bdcac8c (patch)
tree82e6adc11a9938b2467505a2b2436094e3482350
parent49c78789ce7aefd44cc01605dfcb34a3dd066f03 (diff)
downloadrust-83b308e585fda84cf85d7c62a3db6aef3bdcac8c.tar.gz
rust-83b308e585fda84cf85d7c62a3db6aef3bdcac8c.zip
Add assertions to test_total_ord for str
-rw-r--r--src/libcollectionstest/str.rs10
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]