Skip to content
Snippets Groups Projects
Commit 18e4973d authored by florian's avatar florian
Browse files

TST: Add test for erroneous void pointee assignment

parent e810278b
No related branches found
No related tags found
3 merge requests!12F consolidation,!9Draft: API: remove UniqueResult, lower-case at, size for ResultSet,!8ENH: Add retrieval and queries to Extern C interface
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -278,6 +278,9 @@ TEST_F(test_ccaosdb, test_entity_with_parent_and_property) {
char out[255] = {"b"}; // NOLINT
std::cout << "Comparing ..." << std::endl;
// cannot assign an already assigned property
return_code = caosdb_entity_entity_get_property(&entity, &input_property, 0);
EXPECT_EQ(return_code, caosdb::StatusCode::EXTERN_C_ASSIGNMENT_ERROR);
caosdb_entity_property output_property;
return_code = caosdb_entity_entity_get_property(&entity, &output_property, 0);
std::cout << "Got output property." << std::endl;
......
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