unitTest.cpp 596 B

12345678910111213141516171819202122232425262728293031
  1. Describe(make_box)
  2. {
  3. It(T1){Assert::That(makeBox(5), Equals(std::vector<std::string>({
  4. "#####",
  5. "# #",
  6. "# #",
  7. "# #",
  8. "#####"
  9. })));}
  10. It(T2){Assert::That(makeBox(6), Equals(std::vector<std::string>({
  11. "######",
  12. "# #",
  13. "# #",
  14. "# #",
  15. "# #",
  16. "######"
  17. })));}
  18. It(T3){Assert::That(makeBox(4), Equals(std::vector<std::string>({
  19. "####",
  20. "# #",
  21. "# #",
  22. "####"
  23. })));}
  24. It(T4){Assert::That(makeBox(2), Equals(std::vector<std::string>({
  25. "##",
  26. "##"
  27. })));}
  28. It(T5){Assert::That(makeBox(1), Equals(std::vector<std::string>({
  29. "#"
  30. })));}
  31. };