Line data Source code
1 : #include <gtest/gtest.h> 2 : #include "compile.hpp" 3 : 4 4 : TEST(info, version) { 5 1 : const auto version = compile::info::version_compile(); 6 1 : EXPECT_FALSE(version.empty()); 7 1 : } 8 : 9 4 : TEST(info, distribution) { 10 1 : const auto is_debug = compile::info::is_debug(); 11 : #ifdef _DEBUG 12 1 : GTEST_ASSERT_TRUE(is_debug); 13 : #else 14 : GTEST_ASSERT_FALSE(is_debug); 15 : #endif 16 : }