diff --git a/test/read.jl b/test/read.jl index db27d60..034df73 100644 --- a/test/read.jl +++ b/test/read.jl @@ -212,3 +212,14 @@ let objtestfile = "figure.fig" @test vars["hgS_070000"]["handle"] == 1.0 @test vars["hgS_070000"]["type"] == "figure" end + +# test reading file containing Matlab table and datetime objects +# since we don't support these objects, just make sure that there are no errors +# reading the file and that the variables are there and replaced with `missing` +let objtestfile = "struct_table_datetime.mat" + vars = matopen(m->read(m,"s"), joinpath(dirname(@__FILE__), "v7.3", objtestfile)) + @test "testTable" in keys(vars) + @test ismissing(vars["testTable"]) + @test "testDatetime" in keys(vars) + @test ismissing(vars["testDatetime"]) +end diff --git a/test/v7.3/struct_table_datetime.mat b/test/v7.3/struct_table_datetime.mat new file mode 100644 index 0000000..9082308 Binary files /dev/null and b/test/v7.3/struct_table_datetime.mat differ