summary refs log tree commit diff stats
path: root/tests/basic_match.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-10-30 00:49:56 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-10-30 00:49:56 -0300
commita66111d9f9c99f91d9256209b5e9a65e42cde7f5 (patch)
treeaba85fd481ade96ba1be135c459af9d20eb409d7 /tests/basic_match.rs
parentc1210b511af8ffada948550180360859b64009d2 (diff)
Implement parser
Diffstat (limited to 'tests/basic_match.rs')
-rw-r--r--tests/basic_match.rs2
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,