fixed core- and orm-tests. postgres-tests needs some work
This commit is contained in:
@@ -26,7 +26,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
"name",
|
||||
basic_type::type_varchar,
|
||||
2,
|
||||
std::make_shared<attribute_definition>("author", "books", basic_type::type_uint32, constraints::FOREIGN_KEY),
|
||||
std::make_shared<attribute_definition>("author", basic_type::type_uint32, "books", attribute_options{constraints::FOREIGN_KEY}),
|
||||
{255, constraints::FOREIGN_KEY},
|
||||
null_option_type::NOT_NULL
|
||||
);
|
||||
@@ -34,7 +34,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
REQUIRE(c.index() == 2);
|
||||
REQUIRE(c.reference_column());
|
||||
REQUIRE(c.reference_column()->name() == "author");
|
||||
REQUIRE(c.reference_column()->object()->name() == "books");
|
||||
REQUIRE(c.reference_column()->table_name() == "books");
|
||||
REQUIRE(c.type() == basic_type::type_varchar);
|
||||
REQUIRE(c.attributes().size() == 255);
|
||||
|
||||
@@ -43,7 +43,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
REQUIRE(c2.index() == 2);
|
||||
REQUIRE(c2.reference_column());
|
||||
REQUIRE(c2.reference_column()->name() == "author");
|
||||
REQUIRE(c2.reference_column()->object()->name() == "books");
|
||||
REQUIRE(c2.reference_column()->table_name() == "books");
|
||||
REQUIRE(c2.type() == basic_type::type_varchar);
|
||||
REQUIRE(c2.attributes().size() == 255);
|
||||
|
||||
@@ -52,7 +52,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
REQUIRE(c3.index() == 2);
|
||||
REQUIRE(c3.reference_column());
|
||||
REQUIRE(c3.reference_column()->name() == "author");
|
||||
REQUIRE(c3.reference_column()->object()->name() == "books");
|
||||
REQUIRE(c3.reference_column()->table_name() == "books");
|
||||
REQUIRE(c3.type() == basic_type::type_varchar);
|
||||
REQUIRE(c3.attributes().size() == 255);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user