Skip to content

Commit

Permalink
Add test for default
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser committed Oct 9, 2023
1 parent 3234edc commit ca32a9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(";")];
Expand Down

0 comments on commit ca32a9a

Please sign in to comment.