From 1875dad8a6291ecb14c767b5f014c6416840fb7d Mon Sep 17 00:00:00 2001 From: MelnikovDM Date: Mon, 13 May 2024 14:24:38 +0300 Subject: [PATCH] code: final changes in lab 3 --- svg.cpp | 2 +- unittest.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/svg.cpp b/svg.cpp index 4d1c48d..26e2fe7 100644 --- a/svg.cpp +++ b/svg.cpp @@ -9,7 +9,7 @@ void svg_text(double left, double baseline, string text) { cout << "" << 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 << "\n"; } diff --git a/unittest.cpp b/unittest.cpp index c0d3446..95dbccd 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -47,4 +47,5 @@ TEST_CASE("Invalid color with spaces") { } TEST_CASE("Valid color not starting with #") { - CHECK(check_color("FFFFFF") == "FFFFFF"); \ No newline at end of file + CHECK(check_color("FFFFFF") == "FFFFFF"); +} \ No newline at end of file