TDD Boot Camp

     for C++
20
09:30 10:00

10:00 10:05

10:05 10:35

10:35 11:30

11:30 12:00

12:00 13:00

13:00 13:40

13:40 15:00

15:00 15:30

15:30 17:15

17:15 18:15

18:15 18:30

18:30
TDD
TDD Boot Camp 東京 for C++ 進行
TDD Boot Camp 東京 for C++ 進行
TDD
4
4   6   8   10   12   14   16


3   5   7   9    11   13   15
PC
GitHub

   https://github.com/imagire/TDD-Boot-Camp-Tokyo-for-CPP/
                             GitHub   push
google test         TDD (1/5)

#include <gtest/gtest.h>

int main(int argc, char* argv[])
{
  ::testing::InitGoogleTest(&argc, argv);


 return RUN_ALL_TESTS();
}
google test                   TDD (2/5)
#include <gtest/gtest.h>



TEST(AddTest, AddWorks)
{
    EXPECT_EQ(2, add(1, 1));
}

int main(int argc, char* argv[])
{
  ::testing::InitGoogleTest(&argc, argv);


 return RUN_ALL_TESTS();
}
google test                   TDD (3/5)
#include <gtest/gtest.h>

int add(int x, int y)
{
    return 0;
}

TEST(AddTest, AddWorks)
{
    EXPECT_EQ(2, add(1, 1));
}

int main(int argc, char* argv[])
{
  ::testing::InitGoogleTest(&argc, argv);

 return RUN_ALL_TESTS();
}
google test                   TDD (4/5)
#include <gtest/gtest.h>

int add(int x, int y)
{
    long z=y+x;
    return z;
}

TEST(AddTest, AddWorks)
{
    EXPECT_EQ(2, add(1, 1));
}

int main(int argc, char* argv[])
{
  ::testing::InitGoogleTest(&argc, argv);

 return RUN_ALL_TESTS();
}
google test                   TDD (5/5)
#include <gtest/gtest.h>

int add(int x, int y)
{
    return x + y;
}

TEST(AddTest, AddWorks)
{
    EXPECT_EQ(2, add(1, 1));
}

int main(int argc, char* argv[])
{
  ::testing::InitGoogleTest(&argc, argv);

 return RUN_ALL_TESTS();
}
GoogleTest
       true/false
ASSERT_TRUE(condition);      EXPECT_TRUE(condition);       condition      true

ASSERT_FALSE(condition);     EXPECT_FALSE(condition);      condition      false


       2

ASSERT_EQ(expected, actual); EXPECT_EQ(expected, actual); expected == actual

ASSERT_NE(val1, val2);       EXPECT_NE(val1, val2);        val1 != val2

ASSERT_LT(val1, val2);       EXPECT_LT(val1, val2);        val1 < val2

ASSERT_LE(val1, val2);       EXPECT_LE(val1, val2);        val1 <= val2

ASSERT_GT(val1, val2);       EXPECT_GT(val1, val2);        val1 > val2

ASSERT_GE(val1, val2);       EXPECT_GE(val1, val2);        val1 >= val2

                             http://d.hatena.ne.jp/kaorun55/20100730/1280416866
Are y!

Ready?
TDD Boot Camp 東京 for C++ 進行
1
(10   )




TDD
4   6   8   10   12   14   16


3   5   7   9    11   13   15
2


    4   6   8   10 12    14   16


    3   5   7   9   11   13   15
TDD Boot Camp 東京 for C++ 進行

More Related Content

PDF
(AOA) and (AON) Network construction and critical path calculations (using fo...
PDF
Pipeline interface
PDF
Test Automation Using Googletest
PDF
Source Plugins
PDF
Pert2 management
PDF
TestR: generating unit tests for R internals
DOCX
Lab loop
PDF
SHARP: harmonizing Galaxy and Taverna worflow provenance
(AOA) and (AON) Network construction and critical path calculations (using fo...
Pipeline interface
Test Automation Using Googletest
Source Plugins
Pert2 management
TestR: generating unit tests for R internals
Lab loop
SHARP: harmonizing Galaxy and Taverna worflow provenance

What's hot (20)

PDF
The Ring programming language version 1.3 book - Part 63 of 88
PDF
Debugging TV Frame 0x05
PDF
Galera replication
PDF
The Ring programming language version 1.2 book - Part 42 of 84
DOCX
Tugas2
PDF
Success story writing tips
PDF
Soluções da lista de exercícios 4
PDF
The Ring programming language version 1.5.4 book - Part 62 of 185
ODP
Parameter passing
PPTX
Pressure drop model presentation april 19th
PDF
CPP Quiz
PDF
Latihan Persamaan Kuadrat Kelas 8
PDF
Chart parsing with features
PDF
3rd Class
PDF
Java Time Puzzlers
PDF
The Ring programming language version 1.5.3 book - Part 72 of 184
DOCX
C++ assignment
DOCX
PPSX
Step by step network construction and (cpm) calculations
PPTX
Church ngs
The Ring programming language version 1.3 book - Part 63 of 88
Debugging TV Frame 0x05
Galera replication
The Ring programming language version 1.2 book - Part 42 of 84
Tugas2
Success story writing tips
Soluções da lista de exercícios 4
The Ring programming language version 1.5.4 book - Part 62 of 185
Parameter passing
Pressure drop model presentation april 19th
CPP Quiz
Latihan Persamaan Kuadrat Kelas 8
Chart parsing with features
3rd Class
Java Time Puzzlers
The Ring programming language version 1.5.3 book - Part 72 of 184
C++ assignment
Step by step network construction and (cpm) calculations
Church ngs
Ad

Viewers also liked (10)

PDF
くじびきイテレーション
PDF
TDD Boot Camp Tokyo for C++ 2014-01 補講
PDF
LeSS Study [2015/Dec./16] 資料(公開版)
PDF
CIBC 事前インストール
PPTX
ゲームテストへの新しいアプローチ
PPTX
好きなことをしようAction! pub
PPTX
SGGXマイクロフレーク分布
PDF
課題探検迷子に捧ぐゲーム流価値の創造術 (公開版)
PDF
@s_ssk13さん向けGitHub入門
PDF
すべての優先度が1の時の優先順位の決め方
くじびきイテレーション
TDD Boot Camp Tokyo for C++ 2014-01 補講
LeSS Study [2015/Dec./16] 資料(公開版)
CIBC 事前インストール
ゲームテストへの新しいアプローチ
好きなことをしようAction! pub
SGGXマイクロフレーク分布
課題探検迷子に捧ぐゲーム流価値の創造術 (公開版)
@s_ssk13さん向けGitHub入門
すべての優先度が1の時の優先順位の決め方
Ad

Similar to TDD Boot Camp 東京 for C++ 進行 (20)

KEY
Unit testing en iOS @ MobileCon Galicia
PDF
An introduction to Google test framework
PDF
STAMP Descartes Presentation
PDF
Mutation @ Spotify
PDF
Agile mobile
PDF
Unit testing in iOS featuring OCUnit, GHUnit & OCMock
PPTX
Groovy
ODP
From typing the test to testing the type
PDF
Agile Android
PDF
ES6 Simplified
PPTX
2011 nri-pratiques tests-avancees
PDF
Advanced patterns in asynchronous programming
PPT
Google C++ Testing Framework in Visual Studio 2008
PPT
Working Effectively with Legacy Code (draft)
PDF
Mutation Testing at BzhJUG
PPTX
Writing Good Tests
ODP
Pg tap
PDF
Golang dot-testing-lite
DOCX
YOU SHOULD NOT MODIFY ANYTHING IN THIS FILE .docx
PPTX
C programming slide c04
Unit testing en iOS @ MobileCon Galicia
An introduction to Google test framework
STAMP Descartes Presentation
Mutation @ Spotify
Agile mobile
Unit testing in iOS featuring OCUnit, GHUnit & OCMock
Groovy
From typing the test to testing the type
Agile Android
ES6 Simplified
2011 nri-pratiques tests-avancees
Advanced patterns in asynchronous programming
Google C++ Testing Framework in Visual Studio 2008
Working Effectively with Legacy Code (draft)
Mutation Testing at BzhJUG
Writing Good Tests
Pg tap
Golang dot-testing-lite
YOU SHOULD NOT MODIFY ANYTHING IN THIS FILE .docx
C programming slide c04

More from Takashi Imagire (20)

PPTX
『ゲームクリエイター育成会議 オフラインミーティングVol.1 「遊びと学びの研究者に聞く、ゲームデザイナーの育て方」』に参加するにあたって自分なりに考えたこと
PDF
2件のHPG18 ショートペーパーの説明
PDF
コミケでのゲームエンジン2017
PDF
同人ゲーム開発におけるゲームエンジンの現状
PPTX
Chroma blur (日本語での説明)
PDF
ソフトウェアだんどり
PPTX
卒業制作でのチームゲーム開発におけるアジャイル手法の段階的適用に関する事例
PPTX
ゲームエンジンの歴史概要
PDF
(人狼知能合宿)ビデオゲームへの人狼知能の応用について
PDF
ゲーム作りから導くスクラムマネージャー
PDF
The SGGX Microflake Distribution 実装
PDF
くじびきイテレーション for アジャイルサムライ横浜道場
PDF
GDC 2015 でのハイエンドグラフィックス
PDF
実践的ふりかえり (SAPPORO CEDEC 2014)
PDF
無料な継続的出版システム ~ t-ceremony ~
PDF
TDD Boot Camp Tokyo for c++ 2014-01 デモ用資料
PDF
スクラム道場.10 朝会 (Game Community Summit 2013)
PDF
第11回 scrum boot camp in NII ワークショップ
PDF
つくる○アジャイル
PPTX
Cibc lecture imagire
『ゲームクリエイター育成会議 オフラインミーティングVol.1 「遊びと学びの研究者に聞く、ゲームデザイナーの育て方」』に参加するにあたって自分なりに考えたこと
2件のHPG18 ショートペーパーの説明
コミケでのゲームエンジン2017
同人ゲーム開発におけるゲームエンジンの現状
Chroma blur (日本語での説明)
ソフトウェアだんどり
卒業制作でのチームゲーム開発におけるアジャイル手法の段階的適用に関する事例
ゲームエンジンの歴史概要
(人狼知能合宿)ビデオゲームへの人狼知能の応用について
ゲーム作りから導くスクラムマネージャー
The SGGX Microflake Distribution 実装
くじびきイテレーション for アジャイルサムライ横浜道場
GDC 2015 でのハイエンドグラフィックス
実践的ふりかえり (SAPPORO CEDEC 2014)
無料な継続的出版システム ~ t-ceremony ~
TDD Boot Camp Tokyo for c++ 2014-01 デモ用資料
スクラム道場.10 朝会 (Game Community Summit 2013)
第11回 scrum boot camp in NII ワークショップ
つくる○アジャイル
Cibc lecture imagire

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
CloudStack 4.21: First Look Webinar slides
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
observCloud-Native Containerability and monitoring.pptx
PPT
Geologic Time for studying geology for geologist
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
STKI Israel Market Study 2025 version august
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Getting Started with Data Integration: FME Form 101
Tartificialntelligence_presentation.pptx
DP Operators-handbook-extract for the Mautical Institute
CloudStack 4.21: First Look Webinar slides
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
observCloud-Native Containerability and monitoring.pptx
Geologic Time for studying geology for geologist
Benefits of Physical activity for teenagers.pptx
A novel scalable deep ensemble learning framework for big data classification...
A comparative study of natural language inference in Swahili using monolingua...
STKI Israel Market Study 2025 version august
Assigned Numbers - 2025 - Bluetooth® Document
Zenith AI: Advanced Artificial Intelligence
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Developing a website for English-speaking practice to English as a foreign la...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
WOOl fibre morphology and structure.pdf for textiles
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Enhancing emotion recognition model for a student engagement use case through...
Getting Started with Data Integration: FME Form 101

TDD Boot Camp 東京 for C++ 進行

  • 1. TDD Boot Camp for C++
  • 2. 20
  • 3. 09:30 10:00 10:00 10:05 10:05 10:35 10:35 11:30 11:30 12:00 12:00 13:00 13:00 13:40 13:40 15:00 15:00 15:30 15:30 17:15 17:15 18:15 18:15 18:30 18:30
  • 4. TDD
  • 7. TDD
  • 8. 4
  • 9. 4 6 8 10 12 14 16 3 5 7 9 11 13 15
  • 10. PC
  • 11. GitHub https://github.com/imagire/TDD-Boot-Camp-Tokyo-for-CPP/ GitHub push
  • 12. google test TDD (1/5) #include <gtest/gtest.h> int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
  • 13. google test TDD (2/5) #include <gtest/gtest.h> TEST(AddTest, AddWorks) {     EXPECT_EQ(2, add(1, 1)); } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
  • 14. google test TDD (3/5) #include <gtest/gtest.h> int add(int x, int y) {     return 0; } TEST(AddTest, AddWorks) {     EXPECT_EQ(2, add(1, 1)); } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
  • 15. google test TDD (4/5) #include <gtest/gtest.h> int add(int x, int y) {     long z=y+x;     return z; } TEST(AddTest, AddWorks) {     EXPECT_EQ(2, add(1, 1)); } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
  • 16. google test TDD (5/5) #include <gtest/gtest.h> int add(int x, int y) {     return x + y; } TEST(AddTest, AddWorks) {     EXPECT_EQ(2, add(1, 1)); } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
  • 17. GoogleTest true/false ASSERT_TRUE(condition); EXPECT_TRUE(condition); condition true ASSERT_FALSE(condition); EXPECT_FALSE(condition); condition false 2 ASSERT_EQ(expected, actual); EXPECT_EQ(expected, actual); expected == actual ASSERT_NE(val1, val2); EXPECT_NE(val1, val2); val1 != val2 ASSERT_LT(val1, val2); EXPECT_LT(val1, val2); val1 < val2 ASSERT_LE(val1, val2); EXPECT_LE(val1, val2); val1 <= val2 ASSERT_GT(val1, val2); EXPECT_GT(val1, val2); val1 > val2 ASSERT_GE(val1, val2); EXPECT_GE(val1, val2); val1 >= val2 http://d.hatena.ne.jp/kaorun55/20100730/1280416866
  • 20. 1
  • 21. (10 ) TDD
  • 22. 4 6 8 10 12 14 16 3 5 7 9 11 13 15
  • 23. 2 4 6 8 10 12 14 16 3 5 7 9 11 13 15

Editor's Notes