Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • caosdb/src/caosdb-cppinttest
1 result
Show changes
Commits on Source (2)
......@@ -36,14 +36,13 @@ CLANG_TIDY_CMD = $(CLANG_TIDY) \
help:
@echo "Targets:"
@echo " conan-install - Install locally with Conan."
@echo " style - auto-format the source files."
@echo " format - auto-format the source files."
conan-install:
conan install . -s "compiler.libcxx=libstdc++11"
.PHONY: conan-install
format: conan-install
format:
$(CLANG_FORMAT) -i --verbose \
$$(find test/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in")
$(CLANG_TIDY_CMD) $$(find test/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in")
.PHONY: format
......@@ -740,14 +740,12 @@ template <typename T, typename S> auto test_numeric_values_impl(AtomicDataType a
const auto t_stat = retrieve_transaction->WaitForIt();
EXPECT_TRUE(t_stat.IsTerminated());
EXPECT_FALSE(t_stat.IsError());
ASSERT_EQ(retrieve_transaction->GetResultSet().size(), 1);
if (retrieve_transaction->GetResultSet().size() > 0) {
const auto result = retrieve_transaction->GetResultSet().at(0);
EXPECT_EQ(result.GetDataType(), a_type);
const auto &retrieved_value = test_transaction::getValueAs<T>(result.GetValue());
// std::cout << "retrieved_value: " << retrieved_value << std::endl;
EXPECT_EQ(retrieved_value, value);
}
const auto result = retrieve_transaction->GetResultSet().at(0);
EXPECT_EQ(result.GetDataType(), a_type);
const auto &retrieved_value = test_transaction::getValueAs<T>(result.GetValue());
EXPECT_EQ(retrieved_value, value);
++i;
}
}
......