summary refs log tree commit diff stats
path: root/tests/basic_match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic_match.rs')
-rw-r--r--tests/basic_match.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/basic_match.rs b/tests/basic_match.rs
index 5c03a48..b8d0dd8 100644
--- a/tests/basic_match.rs
+++ b/tests/basic_match.rs
@@ -4,13 +4,12 @@
 use serde_json::Deserializer as JsonDer;
 use serde::Deserialize;
 
-use datafu::Predicate;
+//use datafu::Predicate;
 
 #[test]
 fn test_basic() {
     let mut der = JsonDer::from_str(r#"{"foo": 1, "bar": {"baz": 2}}"#);
-    let preds = vec![("dict", datafu::pred(|v| { todo!(); false }))].into_iter().collect();
-    let pat = datafu::Pattern::<()>::compile::<&str, &str>("->[x]:?$dict->y[yk]", Some(preds), None).unwrap();
+    let pat = datafu::PatternBuilder::for_pattern("->[x]:map->[yk]y").compile().unwrap();
     #[derive(Deserialize)]
     struct Values {
         x: String,