From 0b29726755e9f77056bf3a82660085eef2d1f87e Mon Sep 17 00:00:00 2001 From: DevyatovaMY Date: Sat, 27 Apr 2024 20:04:38 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=20=E2=84=969?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svg.cpp | 18 +++++++++++++++++- svg_internal.h | 7 +++++++ unittest.cpp | 11 +++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 svg_internal.h diff --git a/svg.cpp b/svg.cpp index 7b1ccd0..2fcfa13 100644 --- a/svg.cpp +++ b/svg.cpp @@ -5,6 +5,14 @@ using namespace std; +bool +check_width(double width) { + if (width >= 3 && width <= 30) + return true; + else + return false; +} + void svg_text(double left, double baseline, string text) { cout << "