mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Tests: Add random unittests
This commit is contained in:
parent
9179081776
commit
b6475f5448
3 changed files with 279 additions and 1 deletions
|
@ -37,7 +37,7 @@ class TestFailedException : public std::exception {
|
|||
try { \
|
||||
fxn(__VA_ARGS__); \
|
||||
dstream << "[PASS] "; \
|
||||
} catch (TestFailedException) { \
|
||||
} catch (...) { \
|
||||
dstream << "[FAIL] "; \
|
||||
num_tests_failed++; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue