1234567891011121314151617181920212223 |
- Describe(christmas_tree_tests)
- {
- It(test1){Assert::That(tree(1), Equals(std::vector<std::string>({"#"})));}
-
- It(test2) {
- Assert::That(tree(2), Equals(std::vector<std::string>({
- " # ",
- "###"
- })));
- }
-
- It(test3) {
- Assert::That(tree(5), Equals(std::vector<std::string>({
- " # ",
- " ### ",
- " ##### ",
- " ####### ",
- "#########"
- })));
- }
-
- It(should_work_for_a_tree_of_height_zero){Assert::That(tree(0), Equals(std::vector<std::string>({})));}
- };
|