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 @@ + + + + + + + + + + + + + + + + + + + + + + + + +