Skip to content

Commit

Permalink
tests: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiguiere committed Jan 5, 2019
1 parent 6569c61 commit ac2aaa3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions exempi/tests/test-iterator.cpp
Expand Up @@ -99,11 +99,11 @@ int test_main(int argc, char *argv[])
std::vector<tuple3> props;

while (xmp_iterator_next(iter, the_schema, the_path, the_prop, &options)) {
props.push_back(tuple3 {
props.push_back(tuple3 {{
xmp_string_cstr(the_schema),
xmp_string_cstr(the_path),
xmp_string_cstr(the_prop)
});
}});
}

BOOST_CHECK(props.size() == 7);
Expand All @@ -125,18 +125,18 @@ int test_main(int argc, char *argv[])
std::vector<tuple3> props;

while (xmp_iterator_next(iter, the_schema, the_path, the_prop, &options)) {
props.push_back(tuple3 {
props.push_back(tuple3 {{
xmp_string_cstr(the_schema),
xmp_string_cstr(the_path),
xmp_string_cstr(the_prop)
});
}});
}

BOOST_CHECK(props.size() == 3);

BOOST_CHECK(props[0] == tuple3({ NS_DC, "dc:rights", "" }));
BOOST_CHECK(props[1] == tuple3({ "", "[1]", "2006, Hubert Figuiere" }));
BOOST_CHECK(props[2] == tuple3({ NS_XML, "xml:lang", "x-default" }));
BOOST_CHECK(props[0] == (tuple3{{NS_DC, "dc:rights", ""}}));
BOOST_CHECK(props[1] == (tuple3{{"", "[1]", "2006, Hubert Figuiere"}}));
BOOST_CHECK(props[2] == (tuple3{{NS_XML, "xml:lang", "x-default"}}));

BOOST_CHECK(xmp_iterator_free(iter));
}
Expand Down

0 comments on commit ac2aaa3

Please sign in to comment.