code: final changes in lab 3
Этот коммит содержится в:
2
svg.cpp
2
svg.cpp
@@ -9,7 +9,7 @@ void svg_text(double left, double baseline, string text) {
|
||||
cout << "<text x='" << left << "' y='" << baseline << "'>" << text << "</text>";
|
||||
}
|
||||
|
||||
void svg_rect(double x, double y, double width, double height, string stroke = "black", string fill = "black") {
|
||||
void svg_rect(double x, double y, double width, double height, string stroke, string fill) {
|
||||
cout << "<rect x='" << x << "' y='" << y << "' width='" << width << "' height='" << height << "' fill='" << fill << "' stroke='" << stroke << "' />\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -47,4 +47,5 @@ TEST_CASE("Invalid color with spaces") {
|
||||
}
|
||||
|
||||
TEST_CASE("Valid color not starting with #") {
|
||||
CHECK(check_color("FFFFFF") == "FFFFFF");
|
||||
CHECK(check_color("FFFFFF") == "FFFFFF");
|
||||
}
|
||||
Ссылка в новой задаче
Block a user