- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 109字
- 2021-06-24 18:31:54
Test – X plays right after O
Finally, we can check whether X's turn comes after O played.
If the last turn was played by O, then the next turn should be played by X.
There's nothing to do to fulfill this test and, therefore, the test is useless and should be discarded. If you write this test, you'll discover that it is a false positive. It would pass without changing the implementation; try it out. Write this test and if it is successful without writing any implementation code, discard it.
The source code can be found in the 02-next-player branch of the tdd-java-ch03-tic-tac-toe Git repository at https://bitbucket.org/vfarcic/tdd-java-ch03-tic-tac-toe/branch/02-next-player.
推薦閱讀
- 自己動手寫搜索引擎
- R語言游戲數據分析與挖掘
- Learning Raspbian
- 前端HTML+CSS修煉之道(視頻同步+直播)
- HTML5秘籍(第2版)
- 黑莓(BlackBerry)開發從入門到精通
- 計算機組裝與維護(第二版)
- MATLAB 2020 GUI程序設計從入門到精通
- Android智能手機APP界面設計實戰教程
- 走近SDN/NFV
- Learning QGIS(Second Edition)
- Node.js核心技術教程
- Selenium WebDriver自動化測試完全指南
- Learning VMware vCloud Air
- Java EE企業級應用開發教程:Spring+Spring MVC+MyBatis(第2版)