remove boost and json
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "hack/container/container.hpp"
|
||||
|
||||
TEST(vector_multiset, check)
|
||||
{
|
||||
std::vector<int> v;
|
||||
hack::container::vector_multiset(v, 1, 2, 3);
|
||||
ASSERT_EQ(v.at(0), 1);
|
||||
}
|
||||
|
||||
TEST(matches, check)
|
||||
{
|
||||
std::vector<int> v { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
||||
ASSERT_EQ(hack::container::matches(v, 2, 5, 4, 12), 3);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "hack/math/matrix.hpp"
|
||||
|
||||
TEST(matrix, check)
|
||||
{
|
||||
hack::matrix<int, 2> m { { 0, 0, 1 }, { 0, 1, 1 } };
|
||||
m[1][1] = 123;
|
||||
|
||||
ASSERT_EQ(m.size(), 3);
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
gtest_proj = subproject('gtest')
|
||||
gtest_dep = gtest_proj.get_variable('gtest_main_dep')
|
||||
|
||||
test(
|
||||
'split_str',
|
||||
executable(
|
||||
'split_str',
|
||||
'string.cpp',
|
||||
dependencies: [ deps, gtest_dep ]
|
||||
)
|
||||
)
|
||||
|
||||
test(
|
||||
'within',
|
||||
executable(
|
||||
'within',
|
||||
'range.cpp',
|
||||
dependencies: [ deps, gtest_dep ]
|
||||
)
|
||||
)
|
||||
|
||||
test(
|
||||
'container',
|
||||
executable(
|
||||
'container',
|
||||
'container.cpp',
|
||||
dependencies: [ deps, gtest_dep ]
|
||||
)
|
||||
)
|
||||
|
||||
test(
|
||||
'math',
|
||||
executable(
|
||||
'math',
|
||||
'math.cpp',
|
||||
dependencies: [ deps, gtest_dep ]
|
||||
)
|
||||
)
|
||||
@@ -1,9 +0,0 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "hack/range/range.hpp"
|
||||
|
||||
TEST(within, check)
|
||||
{
|
||||
ASSERT_EQ(hack::range::within(23, 123, 34, 44, 55, 66), true);
|
||||
ASSERT_EQ(hack::range::within(23, 123, 134, 44, 55, 66), false);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "hack/string/string.hpp"
|
||||
|
||||
TEST(split_str, check)
|
||||
{
|
||||
std::vector<std::string> v { "asdf", "qwer", "zxcv" };
|
||||
ASSERT_EQ(hack::string::split_str("asdf,qwer,zxcv", ','), v);
|
||||
|
||||
std::vector<std::string> v1 { "qqq", "aaa", "eee", "sss" };
|
||||
ASSERT_EQ(hack::string::split_str("qqq,aaa:eee,sss", ":,"), v1);
|
||||
|
||||
}
|
||||
|
||||
TEST(split_stoi, check)
|
||||
{
|
||||
std::vector<int> v { 1, 2, 3 };
|
||||
ASSERT_EQ(hack::string::split_stoi("1 2 3", ' '), v);
|
||||
}
|
||||
Reference in New Issue
Block a user