Skip to main content

fact

Attribute Macro fact 

Source
#[fact]
Expand description

The fact attribute. A fact is a simple concrete fact to be verified.

See the wiki for more information.

ยงExample

#[fact]
fn cerberus_has_3_heads() {
    number_of_faces("Cerberus").should().be_equal_to(3)
        .because("that's how Cerberus is described");
}