fix prefix test
@@ -65,7 +65,7 @@ pub(crate) fn prefix_cmp(a: &[u8], b: &[u8]) -> Ordering {
/// Compare `a` and `b`, assuming that `a` is prefix encoded and `b` is not.
pub(crate) fn prefix_cmp_encoded(a: &[u8], mut b: &[u8], mut prefix: &[u8]) -> Ordering {
- assert!(a.is_empty() && a[0] as usize <= prefix.len());
+ assert!(!a.is_empty() && a[0] as usize <= prefix.len());
let mut a_prefix_len = a[0];
let a_suffix = &a[1..];
