Advertisement
cepxuozab

EmptyTexture

Sep 3rd, 2023
1,330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. void EmptyTexture() {
  2.         Canvas canvas({5, 3});
  3.  
  4.         canvas.AddShape(ShapeType::RECTANGLE, {1, 0}, {3, 3}, nullptr);
  5.  
  6.         std::stringstream output;
  7.         canvas.Print(output);
  8.  
  9.         const auto answer =
  10.                 "#######\n"
  11.                 "# ... #\n"
  12.                 "# ... #\n"
  13.                 "# ... #\n"
  14.                 "#######\n";
  15.  
  16.         Assert(answer == output.str(), "Your Shape implementation must pass the TestSimple test");
  17.     }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement