Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Mar 10, 2016
1 parent 16ab040 commit 5ea93b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/nal/test/deriver/backward_rules.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
:pre nil})

(deftest test-generate-backward-rule
(let [[_ r2 r3 :as rules] (expand-backward-rules bw-rule)]
(is (= 3 (count rules)))
(let [[_ r1 r2 r3 :as rules] (expand-backward-rules bw-rule)]
(is (= 4 (count rules)))
(are [np1 np2 rule]
(let [{:keys [p1 p2]} rule]
(and (= p1 np1) (= p2 np2)))

'(<-> S (ext-set P)) 'S r1
'(--> S (ext-set P)) 'S r2

'(<-> S (ext-set P)) '(--> S (ext-set P)) r3)))
Expand Down

0 comments on commit 5ea93b7

Please sign in to comment.