Skip to content

Instantly share code, notes, and snippets.

@hmaurer
Created December 30, 2018 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmaurer/13455db916c5790ed81a59bd883a3df8 to your computer and use it in GitHub Desktop.
Save hmaurer/13455db916c5790ed81a59bd883a3df8 to your computer and use it in GitHub Desktop.
(ns elogic.sample-spec
(:require
[clojure.test :refer [is]]
[elogic.core.simple-syntax :refer [term->ast]]
[fulcro-spec.core :refer [specification provided behavior assertions]]))
(specification "Sample Spec"
(behavior "addition computes addition correctly"
(is (= 1 1))))
(specification "Variable"
(behavior "ok"
(is (= (term->ast "x") {:elogic.term/type :elogic/variable
:elogic.variable/name "x"}))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment