Skip to content

enable writing tests in the contract file #7

Description

@z80dev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions