mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Remove duplicate test for trim
This commit is contained in:
		@@ -43,7 +43,6 @@ public:
 | 
			
		||||
	void testPadString();
 | 
			
		||||
	void testStartsWith();
 | 
			
		||||
	void testStrEqual();
 | 
			
		||||
	void testStringTrim();
 | 
			
		||||
	void testStrToIntConversion();
 | 
			
		||||
	void testStringReplace();
 | 
			
		||||
	void testStringAllowed();
 | 
			
		||||
@@ -76,7 +75,6 @@ void TestUtilities::runTests(IGameDef *gamedef)
 | 
			
		||||
	TEST(testPadString);
 | 
			
		||||
	TEST(testStartsWith);
 | 
			
		||||
	TEST(testStrEqual);
 | 
			
		||||
	TEST(testStringTrim);
 | 
			
		||||
	TEST(testStrToIntConversion);
 | 
			
		||||
	TEST(testStringReplace);
 | 
			
		||||
	TEST(testStringAllowed);
 | 
			
		||||
@@ -192,6 +190,8 @@ void TestUtilities::testTrim()
 | 
			
		||||
	UASSERT(trim("dirt_with_grass") == "dirt_with_grass");
 | 
			
		||||
	UASSERT(trim("\n \t\r  Foo bAR  \r\n\t\t  ") == "Foo bAR");
 | 
			
		||||
	UASSERT(trim("\n \t\r    \r\n\t\t  ") == "");
 | 
			
		||||
	UASSERT(trim("  a") == "a");
 | 
			
		||||
	UASSERT(trim("a   ") == "a");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -257,15 +257,6 @@ void TestUtilities::testStrEqual()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void TestUtilities::testStringTrim()
 | 
			
		||||
{
 | 
			
		||||
	UASSERT(trim("  a") == "a");
 | 
			
		||||
	UASSERT(trim("   a  ") == "a");
 | 
			
		||||
	UASSERT(trim("a   ") == "a");
 | 
			
		||||
	UASSERT(trim("") == "");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void TestUtilities::testStrToIntConversion()
 | 
			
		||||
{
 | 
			
		||||
	UASSERT(mystoi("123", 0, 1000) == 123);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user