1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add unit test for RandomNumberGenerator

This covers RNG functionality completely.

Co-authored-by: @vinayakmtiwari.
This commit is contained in:
Andrii Doroshenko (Xrayez)
2020-12-21 02:52:37 +02:00
parent bccbd4be90
commit b12a6cb431
2 changed files with 147 additions and 0 deletions

View File

@@ -41,6 +41,9 @@
// The test is skipped with this, run pending tests with `--test --no-skip`.
#define TEST_CASE_PENDING(name) TEST_CASE(name *doctest::skip())
// The test case is marked as failed, but does not fail the entire test run.
#define TEST_CASE_MAY_FAIL(name) TEST_CASE(name *doctest::may_fail())
// Temporarily disable error prints to test failure paths.
// This allows to avoid polluting the test summary with error messages.
// The `_print_error_enabled` boolean is defined in `core/print_string.cpp` and