From a66111d9f9c99f91d9256209b5e9a65e42cde7f5 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 30 Oct 2022 00:49:56 -0300 Subject: Implement parser --- tests/basic_match.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic_match.rs') 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, -- cgit 1.4.1