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

TST: additional get-datatype check

parent 23e737ad
No related branches found
No related tags found
No related merge requests found
Pipeline #12426 passed
Pipeline: caosdb-cppinttest

#12431

    ......@@ -172,6 +172,12 @@ TEST_F(test_ccaosdb, test_entity) {
    EXPECT_FALSE(*is_list);
    EXPECT_FALSE(*is_ref);
    caosdb_entity_entity_set_datatype(&entity, "Person", true, true);
    caosdb_entity_entity_get_datatype(&entity, &out, is_ref, is_list);
    EXPECT_EQ(strcmp(out, "Person"), 0);
    EXPECT_TRUE(*is_list);
    EXPECT_TRUE(*is_ref);
    caosdb_entity_entity_set_unit(&entity, "m");
    caosdb_entity_entity_get_unit(&entity, &out);
    EXPECT_EQ(strcmp(out, "m"), 0);
    ......
    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