dasy icon indicating copy to clipboard operation
dasy copied to clipboard

enable writing tests in the contract file

Open z80dev opened this issue 3 years ago • 0 comments

use a macro called test

example

(defn getNum [] :uint256 :external
  4)

(test
  (assert 
    (= (.getNum self) 4)))

this would be really easy for a contract with no constructor args or external calls.

z80dev avatar Sep 05 '22 15:09 z80dev