华容道高性能计算引擎
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
668 B

#include "klotski.h"
#include "metadata.h"
#include "gtest/gtest.h"
TEST(FFI, metadata) {
EXPECT_STREQ(get_author(), AUTHOR);
EXPECT_STREQ(get_git_tag(), GIT_TAG_ID);
EXPECT_STREQ(get_version(), VERSION_STR);
EXPECT_STREQ(get_commit_id(), GIT_COMMIT_ID);
EXPECT_STREQ(get_build_time(), BUILD_TIME);
EXPECT_STREQ(get_git_branch(), GIT_BRANCH);
EXPECT_STREQ(get_project_url(), GIT_PROJECT);
EXPECT_STREQ(get_system_info(), SYSTEM);
EXPECT_STREQ(get_compiler_info(), COMPILER);
EXPECT_EQ(get_version_major(), VERSION_MAJOR);
EXPECT_EQ(get_version_minor(), VERSION_MINOR);
EXPECT_EQ(get_version_patch(), VERSION_PATCH);
}