use quickcheck_macros::*; use sledis::escaping::*; #[quickcheck] fn escape_unescape(input: Vec) -> bool { let escaped = escape(&input); let unescaped = escaped.unescape(); input == unescaped } #[quickcheck] fn escape_is_escaped(input: Vec) -> bool { is_escaped(&escape(&input)) }