add various asserts

This commit is contained in:
Martin Klepsch 2018-04-24 10:15:00 +02:00 committed by Tetiana Churikova
parent 79e37b1f06
commit 801c9a8206
1 changed files with 4 additions and 0 deletions

View File

@ -12,15 +12,19 @@
(defn merged? [claim]
(assert (find claim :pr_state))
(= 1 (:pr_state claim)))
(defn paid? [claim]
(assert (find claim :payout_hash))
(not-empty (:payout_hash claim)))
(defn bot-confirm-unmined? [bounty]
(assert (find bounty :confirm_hash))
(empty? (:confirm_hash bounty)))
(defn confirming? [bounty]
(assert (find bounty :confirming?))
(:confirming? bounty))
(defn issue-url