auto_bus/test/io_test.cpp
jackfiled 053ea80067 添加了全局变量的注释
添加了概要设计书的画图文档
完善了.gitignore
2022-05-12 15:32:45 +08:00

27 lines
394 B
C++

//
// Created by ricardo on 2022/5/7.
//
#include "gtest/gtest.h"
#include "gmock/gmock.h"
// 在C++中引用C语言中的函数
#ifdef __cplusplus
extern "C"
{
#endif
#include "rail.h"
#ifdef __cplusplus
}
#endif
using ::testing::Return;
using ::testing::AtLeast;
using ::testing::Exactly;
using namespace testing;
TEST(test, test)
{
int result = add(1, 1);
EXPECT_EQ(2, result);
}