From b9a530cb55337769aae6e969549048f356ad0be8 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Sat, 21 Aug 2021 09:52:30 +0200 Subject: [PATCH] TST: Add tests for is_list and is_ref --- test/runtests.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index f359b08..a37bcd8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -148,9 +148,12 @@ using CaosDB # @test CaosDB.Entity.get_value( # CaosDB.Entity.get_properties(rec_with_parent_and_props)[1], # ) == "2" - @test CaosDB.Entity.get_datatype( + type, is_ref, is_list = CaosDB.Entity.get_datatype( CaosDB.Entity.get_properties(rec_with_parent_and_props)[2], - )[1] == "TEXT" + ) + @test type == "TEXT" + @test is_ref == false + @test is_list == false @test CaosDB.Entity.get_id( CaosDB.Entity.get_properties(rec_with_parent_and_props)[2], ) == "id_of_property_2" -- GitLab