etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
test
NormalCourseTest.cpp
[詳解]
1
5
/* コンパイル(平木場)
6
$ g++-7 NormalCourseTest.cpp ../src/NormalCourse.cpp gtest_main.o gtest-all.o -I../include
7
-I../../googletest/googletest/include
8
*/
9
10
#include "
NormalCourse.h
"
// このヘッダファイルのcppファイルをテスト
11
#include <gtest/gtest.h>
12
13
namespace
etrobocon2018_test {
14
15
class
NormalCourseTest
:
public
::testing::Test {
16
friend
class
NormalCourse
;
17
18
protected
:
19
virtual
void
SetUp
() {}
20
NormalCourse
nc
;
21
};
22
23
TEST_F
(
NormalCourseTest
, stopTest)
24
{
25
nc.stop();
26
int
forword = nc.lineTracerWalker.getForward();
27
ASSERT_EQ(forword, 0);
28
}
29
}
// namespace etrobocon2018_test
etrobocon2018_test::NormalCourseTest
Definition:
NormalCourseTest.cpp:15
etrobocon2018_test::NormalCourseTest::nc
NormalCourse nc
Definition:
NormalCourseTest.cpp:20
NormalCourse.h
NormalCourse
Definition:
NormalCourse.h:8
etrobocon2018_test::TEST_F
TEST_F(BlockStrategyTest, createColorBlockPlace)
Definition:
BlockStrategyTest.cpp:28
etrobocon2018_test::NormalCourseTest::SetUp
virtual void SetUp()
Definition:
NormalCourseTest.cpp:19
構築:
1.8.6