Values

Used as a UDA for built-in unittests to enable value-parametrized tests.

  1. auto Values(T[] values)
    Values
    (
    T
    )
    ()
  2. auto Values(R values)

Examples

@Values(1, 2, 3) unittest { assert(getValue!int % 2 == 0); }

The example above results in unit_threaded running the unit tests 3 times, once for each value declared.

See getValue.

Meta