diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic_match.rs b/tests/basic_match.rs index b8d0dd8..a1c62bb 100644 --- a/tests/basic_match.rs +++ b/tests/basic_match.rs @@ -9,7 +9,7 @@ use serde::Deserialize; #[test] fn test_basic() { let mut der = JsonDer::from_str(r#"{"foo": 1, "bar": {"baz": 2}}"#); - let pat = datafu::PatternBuilder::for_pattern("->[x]:map->[yk]y").compile().unwrap(); + let pat = datafu::PatternBuilder::for_pattern("->[x]:?map->[yk]y").compile().unwrap(); #[derive(Deserialize)] struct Values { x: String, |