mirror of
				https://github.com/taglib/taglib.git
				synced 2025-11-03 16:26:18 -05:00 
			
		
		
		
	Add some tests for String::toInt() with too large values.
This commit is contained in:
		@ -241,6 +241,12 @@ public:
 | 
			
		||||
    CPPUNIT_ASSERT_EQUAL(String("-123").toInt(), -123);
 | 
			
		||||
    CPPUNIT_ASSERT_EQUAL(String("123aa").toInt(), 123);
 | 
			
		||||
    CPPUNIT_ASSERT_EQUAL(String("-123aa").toInt(), -123);
 | 
			
		||||
 | 
			
		||||
    String("2147483648").toInt(&ok);
 | 
			
		||||
    CPPUNIT_ASSERT_EQUAL(ok, false);
 | 
			
		||||
 | 
			
		||||
    String("-2147483649").toInt(&ok);
 | 
			
		||||
    CPPUNIT_ASSERT_EQUAL(ok, false);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void testSubstr()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user