mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user