logo

Attribute Macro ark_api::ark_test

source · []
#[ark_test]
Expand description

Ark’s version of Rust’s #[test] macro

#[ark_test]
fn makes_a_sad() {
    assert_eq!(1, 2, "me am good in nummers");
}

Macro emulating the behavior of the standard #[test] macro, but for module code compiled to WebAssembly. Such a test can then be executed with ark using ark module test.

#[ark_test]
fn makes_a_sad() {
    assert_eq!(1, 2, "me am good in nummers");
}