etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
RightNormalCourseTest.cpp
[詳解]
1 
5 /* コンパイル(平木場)
6 $ g++-7 RightNormalCourseTest.cpp ../src/RightNormalCourse.cpp gtest_main.o gtest-all.o -I../include
7 -I../../googletest/googletest/include
8 */
9 
10 #include "RightNormalCourse.h" // このヘッダファイルのcppファイルをテスト
11 #include <gtest/gtest.h>
12 
13 namespace etrobocon2018_test {
14 
15  TEST(RightNormalCourseTest, CreateTest) { RightNormalCourse rnc; }
16 
17  TEST(RightNormalCourseTest, runTest)
18  {
20  for(int i = 0; i < 13000; i++) {
21  rnc.statusCheck(i, i);
22  rnc.runNormalCourse(30, 30, 30, 30);
23  }
24  }
25 } // namespace etrobocon2018_test
RコースのNormalCourseの処理を行うクラス
bool statusCheck(int32_t countL, int32_t countR)
TEST(AIAnswerArrayTest, construct)
bool runNormalCourse(int16_t target_brightness, int16_t black, int16_t white, int16_t gray)