-
-
Notifications
You must be signed in to change notification settings - Fork 3
BooleanProperty
class BooleanProperty :
ForgeryProperty
<
Boolean
>
This class implements a ReadOnlyProperty, forging a random boolean with a given probability of being true.
probability
- the probability the boolean will be true (default 0.5f)
BooleanProperty(probability:
Float
= Forge.HALF_PROBABILITY)
This class implements a ReadOnlyProperty, forging a random boolean with a given probability of being true.
probability
- the probability the boolean will be true (default 0.5f)
fun getForgery(forge:
Forge
):
Boolean
Inheritdoc
fun booleanForgery(probability:
Float
= Forge.HALF_PROBABILITY):
ForgeryProperty
<
Boolean
>
Creates a ReadOnlyProperty that will forge a random boolean with the given probability of being true.
probability
- the probability the boolean will be true (default 0.5f)
Xavier F. Gouchet – @xgouchet
Distributed under the MIT license. See LICENSE.md for more information.
https://github.com/xgouchet/Elymr
- Home
- Getting Started
- Core Module
- Integrations
- Reference (core)
- Reference (junit4)
- Reference (junit5)
- Reference (spek)