Customize this class with your specific FlameGame type T and a custom
provider () -> T, plus some additional configurations including a game
widget builder createGameWidget, a custom pumpWidget function and a
custom gameSize.
Customize this class with your specific Game type T and a custom
provider () -> T, plus some additional configurations including a game
widget builder createGameWidget, a custom pumpWidget function and a
custom gameSize.
Returns a matcher which checks if the argument is an axis-aligned bounding
box sufficiently close (within distance epsilon) to expected. Example
of usage:
Get the random seed for a test. If the seed parameter is passed in,
it takes precedence. Otherwise, if the environment variable
RANDOM_SEED is set, it is used. If neither is set, returns null.
Note: When using this, the random_test_test will fail because it will
use the same seed for all tests. This is expected.
This function is equivalent to test(name, body), except that it is
better suited for randomized testing: it will create a Random
generator and pass it to the test body, but also record the seed
that was used for creating the random generator. Thus, if a test
fails for a specific rare seed, it would be easy to reproduce this
failure.
This function is equivalent to testWidgets(name, body), except that
it is better suited for randomized testing: it will create a Random
generator and pass it to the test body, but also record the seed
that was used for creating the random generator. Thus, if a test
fails for a specific rare seed, it would be easy to reproduce this
failure.
Calculate the float32 tolerance for the Vector2 value that uses double
precision. This is a wrapper for calling sum(toleranceFloat32) for each
element.