Skip to content

Replace readme example with one that fails on all profiles #146

@Liam-DeVoe

Description

@Liam-DeVoe

The current readme example fails only under the test profile:

use hegel::generators as gs;
use hegel::TestCase;

#[hegel::test]
fn test_addition_commutative(tc: TestCase) {
    let x = tc.draw(gs::integers::<i32>());
    let y = tc.draw(gs::integers::<i32>());
    assert_eq!(x + y, y + x);
}

We should replace it with one that fails everywhere.

See #132 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsdocumentation could *always* be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions