From 83b308e585fda84cf85d7c62a3db6aef3bdcac8c Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Thu, 22 Oct 2015 03:19:14 +0100 Subject: [PATCH] Add assertions to test_total_ord for str --- src/libcollectionstest/str.rs | 10 +++++----- 1 file 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]