Struct fixt::Predictable[][src]

pub struct Predictable;

represents a predictable curve

a predictable curve simply iterates over some known progression of values in the same way every test run.

predictable curves can be convenient, or even necessary, if an unpredictable curve breaks our ability to make specific assertions about our code.

for example, we may want to demonstrate that additon works. with an unpredictable curve we can assert things like the arguments being commutative, associative, additive, etc. but then we quickly end up doing a bad version of property testing. better to assert known expected results of addition from various values from a predictable curve and then subject the addition function to real property testing with a dedicated tool.

this curve is provided as a standard option because there is a real, common tradeoff between test fragility (accuracy) and specificity (precision).

Trait Implementations

impl Clone for Predictable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,