TargetDirection
Rasuvaeff\PropertyTesting\Runner\TargetDirection
Enum — Package: property-testing-core — Source — Version: v1.0.0-1-g88fdee2
Implements: UnitEnum, BackedEnum
Which way a Target label is pushed.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
Maximize | Runner\TargetDirection | ||
Minimize | Runner\TargetDirection |
Cases
| Case | Backing value |
|---|---|
Maximize | "maximize" |
Minimize | "minimize" |
Methods
improves()
php
improves(float $candidate, float $best): boolWhether $candidate is an improvement on $best in this direction.
$candidate— The score under consideration.$best— The best so far.