This commit is contained in:
Alex 2022-04-28 14:33:09 +02:00
parent 1747132875
commit 301929f962
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -265,6 +265,8 @@ mod tests {
#[test]
fn test_key_after_prefix() {
use std::iter::FromIterator;
assert_eq!(UTF8_BEFORE_LAST_CHAR as u32, (char::MAX as u32) - 1);
assert_eq!(key_after_prefix("a/b/").unwrap().as_str(), "a/b0");
assert_eq!(key_after_prefix("").unwrap().as_str(), "");