sled/src/status_test.cc

10 lines
209 B
C++
Raw Normal View History

2024-03-23 15:40:27 +08:00
#include <gtest/gtest.h>
#include <sled/log/log.h>
#include <sled/status.h>
TEST(Status, format)
{
auto status = sled::Status(sled::StatusCode::kOk, "");
2024-03-23 15:57:15 +08:00
EXPECT_EQ(fmt::format("{}", status), "OK");
2024-03-23 15:40:27 +08:00
}