(ns desdemona.query-test
  (:require
   [desdemona.query :as q]
   [clojure.test :refer [deftest is]]))

(deftest query-tests
  (is (= [{:ip "10.0.0.1"}]
         (q/query '(== (:ip entry) "10.0.0.1")
                  [{:ip "10.0.0.1"}]))))

(ns desdemona.query-test
  (:require
   [desdemona.query :as q]
   [clojure.test :refer [deftest is]]))

(deftest query-tests
  (is (= [{:ip "10.0.0.1"}]
         (q/query '(== (:ip x) "10.0.0.1")
                  [{:ip "10.0.0.1"}]))))

Use x as var for now
Use x as var for now

Later, I'll need to walk the tree to find which variables are logic
variables that should be fresh.

RackSec/desdemona