Skip to content

enable writing tests in the contract file #7

@z80dev

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.

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