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

(deftest query-tests
  (is (= [[{:ip "10.0.0.1"}]]
         (q/run-query '(== (:ip x) "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 (= []
         (q/run-query 'l/fail
                      [{:ip "10.0.0.1"}])))
  (is (= [[{:ip "10.0.0.1"}]]
         (q/run-query '(== (:ip x) "10.0.0.1")
                      [{:ip "10.0.0.1"}]))))

Add a simple test with a failing goal
Add a simple test with a failing goal

RackSec/desdemona