Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blue32a-sandbox/cza-tdd
CodeZine Academy TDD実践講座 2021/01
https://github.com/blue32a-sandbox/cza-tdd
php tdd
Last synced: 23 days ago
JSON representation
CodeZine Academy TDD実践講座 2021/01
- Host: GitHub
- URL: https://github.com/blue32a-sandbox/cza-tdd
- Owner: blue32a-sandbox
- Created: 2022-01-22T09:01:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T10:59:42.000Z (about 3 years ago)
- Last Synced: 2024-11-18T14:44:24.493Z (3 months ago)
- Topics: php, tdd
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CodeZine Academy TDD実践講座
https://event.shoeisha.jp/cza/tdd
TDD実習の成果物。
## 問題文
整数閉区間を示すクラス(あるいは構造体)をつくりたい。整数閉区間オブジェクトは下端点と上端点を持ち、文字列表現も返せる(例: 下端点 3, 上端点 8 の整数閉区間の文字列表記は "[3,8]")。ただし、上端点より下端点が大きい閉区間を作ることはできない。整数の閉区間は指定した整数を含むかどうかを判定できる。また、別の閉区間と等価かどうかや、完全に含まれるかどうかも判定できる。