changeset 128:566a0f423512

Adjust cmp tests to previous change
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 31 Dec 2016 18:31:52 +0100
parents 400a8eee617c
children 6c83a0a8713c
files src/cmp.rs
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmp.rs	Sat Dec 31 18:29:54 2016 +0100
+++ b/src/cmp.rs	Sat Dec 31 18:31:52 2016 +0100
@@ -173,13 +173,13 @@
         assert_eq!(DefaultCmp.find_shortest_sep("abcd".as_bytes(), "abcf".as_bytes()),
                    "abce".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("abc".as_bytes(), "acd".as_bytes()),
-                   "abc\0".as_bytes());
+                   "abc".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("abcdefghi".as_bytes(), "abcffghi".as_bytes()),
                    "abce".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("a".as_bytes(), "a".as_bytes()),
                    "a".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("a".as_bytes(), "b".as_bytes()),
-                   "a\0".as_bytes());
+                   "a".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("abc".as_bytes(), "zzz".as_bytes()),
                    "b".as_bytes());
         assert_eq!(DefaultCmp.find_shortest_sep("".as_bytes(), "".as_bytes()),
@@ -208,7 +208,7 @@
                    LookupKey::new("b".as_bytes(), types::MAX_SEQUENCE_NUMBER).internal_key());
         assert_eq!(cmp.find_shortest_sep(LookupKey::new("abc".as_bytes(), 1).internal_key(),
                                          LookupKey::new("acd".as_bytes(), 2).internal_key()),
-                   LookupKey::new("abc\0".as_bytes(), 1).internal_key());
+                   LookupKey::new("abc".as_bytes(), 1).internal_key());
         assert_eq!(cmp.find_shortest_sep(LookupKey::new("abc".as_bytes(), 1).internal_key(),
                                          LookupKey::new("abe".as_bytes(), 2).internal_key()),
                    LookupKey::new("abd".as_bytes(), 1).internal_key());