From f494af77006b2d690b2cadf302c6b7a43a8ec542 Mon Sep 17 00:00:00 2001 From: YusufovYB Date: Mon, 22 May 2023 11:49:23 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- block_with.cpp | 8 ++++++++ block_with.h | 7 +++++++ unittest.layout | 25 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 block_with.cpp create mode 100644 block_with.h create mode 100644 unittest.layout diff --git a/block_with.cpp b/block_with.cpp new file mode 100644 index 0000000..4bb8218 --- /dev/null +++ b/block_with.cpp @@ -0,0 +1,8 @@ +#include "block_with.h" +bool input_block_with(double& BLOCK_WIDTH) +{ + if((BLOCK_WIDTH<3) || (BLOCK_WIDTH>30)) + return false; + if((BLOCK_WIDTH>3) && (BLOCK_WIDTH<30)) + return true; +} diff --git a/block_with.h b/block_with.h new file mode 100644 index 0000000..88924fd --- /dev/null +++ b/block_with.h @@ -0,0 +1,7 @@ +#ifndef BLOCK_WITH_H_INCLUDED +#define BLOCK_WITH_H_INCLUDED + +bool input_block_with(double& BLOCK_WIDTH); + + +#endif // BLOCK_WITH_H_INCLUDED diff --git a/unittest.layout b/unittest.layout new file mode 100644 index 0000000..c974343 --- /dev/null +++ b/unittest.layout @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + +