added more tests

This commit is contained in:
Sascha Kühl
2025-02-06 16:17:47 +01:00
parent c76aa56440
commit 0b70f5d4ee
68 changed files with 2117 additions and 263 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/sql/column_definition.hpp"
#include "matador/object/attribute_definition.hpp"
using namespace matador::sql;
using namespace matador::object;
using namespace matador::utils;
TEST_CASE("Test create empty column", "[column]") {
column_definition c("name");
attribute_definition c("name");
REQUIRE(c.name() == "name");
REQUIRE(c.index() == -1);
@@ -26,7 +26,7 @@ TEST_CASE("Test create empty column", "[column]") {
}
TEST_CASE("Test copy and move column", "[column]") {
column_definition c("name");
attribute_definition c("name");
c.set(std::string{"george"}, 255);
REQUIRE(c.name() == "name");
REQUIRE(c.index() == -1);