mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
15 lines
282 B
C++
15 lines
282 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(), "Success");
|
|
}
|