test fmt library is basically working
This commit is contained in:
@@ -3,4 +3,5 @@ target_sources(
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test1.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test2.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fmt.cpp
|
||||
)
|
||||
|
||||
9
tests/src/Misc/fmt.cpp
Normal file
9
tests/src/Misc/fmt.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
TEST(fmt, fail){
|
||||
EXPECT_NE("abc", fmt::format("{}{}","a","b"));
|
||||
}
|
||||
TEST(fmt, pass){
|
||||
EXPECT_EQ("ab", fmt::format("{}{}","a","b"));
|
||||
}
|
||||
Reference in New Issue
Block a user