renamed basic_types enumerations
This commit is contained in:
@@ -9,19 +9,19 @@ TEST_CASE("Test create empty column", "[column]") {
|
||||
attribute c("name");
|
||||
|
||||
REQUIRE(c.name() == "name");
|
||||
REQUIRE(c.type() == basic_type::type_null);
|
||||
REQUIRE(c.type() == basic_type::Null);
|
||||
|
||||
c.change_type<std::string>(255);
|
||||
REQUIRE(c.type() == basic_type::type_varchar);
|
||||
REQUIRE(c.type() == basic_type::Varchar);
|
||||
|
||||
c.change_type<int32_t>(7);
|
||||
REQUIRE(c.type() == basic_type::type_int32);
|
||||
REQUIRE(c.type() == basic_type::Int32);
|
||||
}
|
||||
|
||||
TEST_CASE("Test copy and move column", "[column]") {
|
||||
attribute c(
|
||||
"name",
|
||||
basic_type::type_varchar,
|
||||
basic_type::Varchar,
|
||||
// 2,
|
||||
// std::make_shared<attribute>("author", basic_type::type_uint32, "books", attribute_options{constraints::ForeignKey}),
|
||||
{255, constraints::ForeignKey},
|
||||
@@ -32,7 +32,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
// REQUIRE(c.reference_column());
|
||||
// REQUIRE(c.reference_column()->name() == "author");
|
||||
// REQUIRE(c.reference_column()->table_name() == "books");
|
||||
REQUIRE(c.type() == basic_type::type_varchar);
|
||||
REQUIRE(c.type() == basic_type::Varchar);
|
||||
REQUIRE(c.attributes().size() == 255);
|
||||
|
||||
auto c2 = c;
|
||||
@@ -41,7 +41,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
// REQUIRE(c2.reference_column());
|
||||
// REQUIRE(c2.reference_column()->name() == "author");
|
||||
// REQUIRE(c2.reference_column()->table_name() == "books");
|
||||
REQUIRE(c2.type() == basic_type::type_varchar);
|
||||
REQUIRE(c2.type() == basic_type::Varchar);
|
||||
REQUIRE(c2.attributes().size() == 255);
|
||||
|
||||
auto c3 = std::move(c2);
|
||||
@@ -50,7 +50,7 @@ TEST_CASE("Test copy and move column", "[column]") {
|
||||
// REQUIRE(c3.reference_column());
|
||||
// REQUIRE(c3.reference_column()->name() == "author");
|
||||
// REQUIRE(c3.reference_column()->table_name() == "books");
|
||||
REQUIRE(c3.type() == basic_type::type_varchar);
|
||||
REQUIRE(c3.type() == basic_type::Varchar);
|
||||
REQUIRE(c3.attributes().size() == 255);
|
||||
|
||||
REQUIRE(c2.name().empty());
|
||||
|
||||
Reference in New Issue
Block a user