Advertisement
cepxuozab

SmallTexture

Jun 7th, 2023
1,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. voidSmallTexture() {
  2.         Canvas canvas({6, 4});
  3.  
  4.         canvas.AddShape(ShapeType::RECTANGLE, {1, 1}, {4, 2},
  5.                         MakeTextureSolid({3, 1}, '*'));
  6.  
  7.         std::stringstream output;
  8.         canvas.Print(output);
  9.  
  10.         const auto answer =
  11.                 "########\n"
  12.                 "#      #\n"
  13.                 "# ***. #\n"
  14.                 "# .... #\n"
  15.                 "#      #\n"
  16.                 "########\n";
  17.  
  18.         Assert(answer == output.str(), "SmallTexture test");
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement