add within

This commit is contained in:
chatlanin
2022-03-02 11:08:14 +03:00
parent d7bff82e02
commit 55a2bacc0e
9 changed files with 64 additions and 4 deletions

9
tests/range.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include <gtest/gtest.h>
#include "range/range.hpp"
TEST(within, check)
{
ASSERT_EQ(hack::within(23, 123, 34, 44, 55, 66), true);
ASSERT_EQ(hack::within(23, 123, 134, 44, 55, 66), false);
}