sled/src/status_test.cc
tqcq 95845b14dc
All checks were successful
linux-x64-gcc / linux-gcc (Release) (push) Successful in 1m28s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 59s
fix status ToString
2024-03-23 15:57:15 +08:00

10 lines
209 B
C++

#include <gtest/gtest.h>
#include <sled/log/log.h>
#include <sled/status.h>
TEST(Status, format)
{
auto status = sled::Status(sled::StatusCode::kOk, "");
EXPECT_EQ(fmt::format("{}", status), "OK");
}