Skip to content
Snippets Groups Projects
Commit 1f007ba8 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add missing tests for CFunctionEmbedderTable

parent 878216c3
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -26,7 +26,15 @@ TEST_CASE("CFunctionEmbedderTable", "[language]")
REQUIRE(table[0] == embedded_sin);
REQUIRE(table[1] == embedded_greater);
const auto& const_table = table;
REQUIRE(const_table.size() == 2);
REQUIRE(const_table[0] == embedded_sin);
REQUIRE(const_table[1] == embedded_greater);
#ifndef NDEBUG
REQUIRE_THROWS_AS(table[2], AssertError);
REQUIRE_THROWS_AS(const_table[2], AssertError);
#endif // NDEBUG
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment