mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
fix: ut
This commit is contained in:
parent
31e4c4d5e4
commit
f43606639c
@ -6,13 +6,10 @@
|
||||
#include "libimp/fmt.h"
|
||||
|
||||
TEST(fmt, operator) {
|
||||
auto a = imp::spec("hello")(123);
|
||||
EXPECT_STREQ(a.fstr.data(), "hello");
|
||||
EXPECT_EQ(a.param , 123);
|
||||
|
||||
auto b = imp::spec("hello")("world");
|
||||
EXPECT_STREQ(b.fstr.data(), "hello");
|
||||
EXPECT_STREQ(b.param , "world");
|
||||
EXPECT_STREQ(imp::spec("hello")(123).fstr.data(), "hello");
|
||||
EXPECT_EQ(imp::spec("hello")(123).param , 123);
|
||||
EXPECT_STREQ(imp::spec("hello")("world").fstr.data(), "hello");
|
||||
EXPECT_STREQ(imp::spec("hello")("world").param , "world");
|
||||
}
|
||||
|
||||
TEST(fmt, to_string) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user