Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- voidSmallTexture() {
- Canvas canvas({6, 4});
- canvas.AddShape(ShapeType::RECTANGLE, {1, 1}, {4, 2},
- MakeTextureSolid({3, 1}, '*'));
- std::stringstream output;
- canvas.Print(output);
- const auto answer =
- "########\n"
- "# #\n"
- "# ***. #\n"
- "# .... #\n"
- "# #\n"
- "########\n";
- Assert(answer == output.str(), "SmallTexture test");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement