1234567891011121314 |
- Describe(countdown_tests)
- {
- It(should_count_down_correctly)
- {
- Assert::That(countdown(3), Equals(std::vector<int>{3, 2, 1, 0}));
- Assert::That(countdown(20), Equals(std::vector<int>{20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}));
- }
- It(should_count_down_with_one_number) {
- Assert::That(countdown(1), Equals(std::vector<int>{1, 0}));
- }
- It(should_count_down_with_zero_numbers) {
- Assert::That(countdown(0), Equals(std::vector<int>{0}));
- }
- };
|