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

ENH: Re-enable commented tests

parent ab931fa8
No related branches found
No related tags found
1 merge request!13ENH: Add datatypes and value classes to Extern C interface
Pipeline #12283 passed
Pipeline: caosdb-cppinttest

#12286

    This commit is part of merge request !13. Comments created here will be created in the context of that merge request.
    ......@@ -184,8 +184,7 @@ TEST_F(test_ccaosdb, test_entity) {
    return_code = caosdb_entity_entity_get_double_value(&entity, value);
    std::cout << *value << std::endl;
    EXPECT_EQ(return_code, 0);
    // TODO(fspreck) Re-enable once role and datatype are set
    // EXPECT_EQ(*value, 5.0);
    EXPECT_EQ(*value, 5.0);
    return_code = caosdb_entity_delete_entity(&entity);
    EXPECT_EQ(return_code, 0);
    ......@@ -242,16 +241,13 @@ TEST_F(test_ccaosdb, test_property) {
    caosdb_entity_property_get_unit(&property, &out);
    EXPECT_EQ(strcmp(out, "some_unit"), 0);
    // TODO(fspreck)
    // caosdb_entity_property_get_string_value(&property, out);
    // EXPECT_EQ(strcmp(out, "some_value"), 0);
    caosdb_entity_property_get_string_value(&property, &out);
    EXPECT_EQ(strcmp(out, "some_value"), 0);
    return_code = caosdb_entity_delete_property(&property);
    EXPECT_EQ(return_code, 0);
    }
    // TODO(fspreck) Test a property with datatype LIST<Something> and a
    // list value.
    TEST_F(test_ccaosdb, test_list_property) {
    caosdb_entity_property property;
    ......
    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