diff --git a/src/lib.rs b/src/lib.rs index 0f8117b..ce9a130 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -242,6 +242,12 @@ mod test { use simd_json::borrowed::Object; use simd_json::BorrowedValue; + #[test] + fn default() { + let d = Pattern::default(); + let p = Pattern::compile("%{key}:%{val}").expect("compile"); + assert_eq!(d, p); + } #[test] fn test_multisplit() { let seps = vec![String::from(" "), String::from(";")];