Skip to content
Snippets Groups Projects
Commit a89372aa authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

STY: ws

parent 6b87d2fa
No related branches found
No related tags found
No related merge requests found
Pipeline #12825 failed
...@@ -32,15 +32,17 @@ ...@@ -32,15 +32,17 @@
* @date 2021-07-07 * @date 2021-07-07
*/ */
#define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \ #define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \
EXPECT_THROW(try { statement; } catch (const exeption_type &e) { \ EXPECT_THROW( \
EXPECT_EQ(std::string(e.what()), message); \ try { statement; } catch (const exeption_type &e) { \
throw; \ EXPECT_EQ(std::string(e.what()), message); \
}, \ throw; \
exeption_type) }, \
exeption_type)
#define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \ #define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \
ASSERT_THROW(try { statement; } catch (const exeption_type &e) { \ ASSERT_THROW( \
ASSERT_EQ(std::string(e.what()), message); \ try { statement; } catch (const exeption_type &e) { \
throw; \ ASSERT_EQ(std::string(e.what()), message); \
}, \ throw; \
exeption_type) }, \
exeption_type)
#endif #endif
...@@ -695,8 +695,7 @@ auto test_numeric_values_impl(AtomicDataType a_type) -> void { ...@@ -695,8 +695,7 @@ auto test_numeric_values_impl(AtomicDataType a_type) -> void {
auto insert_transaction(connection->CreateTransaction()); auto insert_transaction(connection->CreateTransaction());
Entity prop; Entity prop;
prop.SetRole(Role::PROPERTY); prop.SetRole(Role::PROPERTY);
const auto name = const auto name = std::string("Prop ") + std::to_string(i);
std::string("Prop ") + std::to_string(i);
std::cout << "Creating: " << name << std::endl; std::cout << "Creating: " << name << std::endl;
prop.SetName(name); prop.SetName(name);
prop.SetDataType(a_type); prop.SetDataType(a_type);
...@@ -717,8 +716,7 @@ auto test_numeric_values_impl(AtomicDataType a_type) -> void { ...@@ -717,8 +716,7 @@ auto test_numeric_values_impl(AtomicDataType a_type) -> void {
for (const auto value : values_orig) { for (const auto value : values_orig) {
auto retrieve_transaction(connection->CreateTransaction()); auto retrieve_transaction(connection->CreateTransaction());
const auto prop = props_orig[i]; const auto prop = props_orig[i];
const auto name = const auto name = std::string("Prop ") + std::to_string(i);
std::string("Prop ") + std::to_string(i);
std::cout << "Retrieving: " << name << std::endl; std::cout << "Retrieving: " << name << std::endl;
const auto query = std::string("FIND ENTITY \"") + name + "\""; const auto query = std::string("FIND ENTITY \"") + name + "\"";
retrieve_transaction->Query(query); retrieve_transaction->Query(query);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment