mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
This commit is contained in:
parent
6228d634fb
commit
4e1f50035e
153 changed files with 3725 additions and 3625 deletions
|
@ -157,6 +157,8 @@ struct TestUtilities: public TestBase
|
|||
UASSERT(fabs(wrapDegrees(-0.5) - (-0.5)) < 0.001);
|
||||
UASSERT(fabs(wrapDegrees(-365.5) - (-5.5)) < 0.001);
|
||||
UASSERT(lowercase("Foo bAR") == "foo bar");
|
||||
UASSERT(trim("\n \t\r Foo bAR \r\n\t\t ") == "Foo bAR");
|
||||
UASSERT(trim("\n \t\r \r\n\t\t ") == "");
|
||||
UASSERT(is_yes("YeS") == true);
|
||||
UASSERT(is_yes("") == false);
|
||||
UASSERT(is_yes("FAlse") == false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue