mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
15 lines
300 B
C++
15 lines
300 B
C++
#include <iostream>
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include "libimp/error.h"
|
|
#include "libimp/result.h"
|
|
#include "libimp/fmt.h"
|
|
|
|
TEST(error, error_code) {
|
|
std::error_code ecode;
|
|
EXPECT_FALSE(ecode);
|
|
std::cout << ecode.message() << "\n";
|
|
EXPECT_EQ(ecode.message(), "[generic: 0, \"success\"]");
|
|
}
|