Fix unittest

pull/4166/head
Kim Kulling 2021-11-09 23:27:58 +01:00 committed by GitHub
parent e206d699da
commit 8a613a8655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -44,16 +44,16 @@ class utVersion : public ::testing::Test {
}; };
TEST_F( utVersion, aiGetLegalStringTest ) { TEST_F( utVersion, aiGetLegalStringTest ) {
const char *lv( aiGetLegalString() ); const char *lv = aiGetLegalString();
EXPECT_NE( lv, nullptr ); EXPECT_NE( lv, nullptr );
std::string text( lv ); std::string text( lv );
size_t pos( text.find( std::string( "2021" ) ) ); size_t pos = text.find(std::string("2021"));
EXPECT_NE( pos, std::string::npos ); EXPECT_NE( pos, std::string::npos );
} }
TEST_F( utVersion, aiGetVersionMinorTest ) { TEST_F( utVersion, aiGetVersionMinorTest ) {
EXPECT_EQ( aiGetVersionMinor(), 0U ); EXPECT_EQ( aiGetVersionMinor(), 1U );
} }
TEST_F( utVersion, aiGetVersionMajorTest ) { TEST_F( utVersion, aiGetVersionMajorTest ) {