diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-03-15 13:02:35 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-03-15 14:36:44 +0100 |
commit | e73494c2342ef83c35c404a5bab306aac828770c (patch) | |
tree | 89cf80a176b1ea0729085879988cd1974d0e5fbd /test/buildtool/build_engine/expression/expression.test.cpp | |
parent | 73c00a4820097588c2dc0bd9a89d34a65de0084b (diff) | |
download | justbuild-e73494c2342ef83c35c404a5bab306aac828770c.tar.gz |
catch2: bump to version 3.3.2
tests have been updated accordingly
Diffstat (limited to 'test/buildtool/build_engine/expression/expression.test.cpp')
-rw-r--r-- | test/buildtool/build_engine/expression/expression.test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/buildtool/build_engine/expression/expression.test.cpp b/test/buildtool/build_engine/expression/expression.test.cpp index 780b66e5..10edbcbd 100644 --- a/test/buildtool/build_engine/expression/expression.test.cpp +++ b/test/buildtool/build_engine/expression/expression.test.cpp @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "catch2/catch.hpp" +#include "catch2/catch_test_macros.hpp" +#include "catch2/matchers/catch_matchers_all.hpp" #include "src/buildtool/build_engine/expression/configuration.hpp" #include "src/buildtool/build_engine/expression/expression.hpp" #include "src/buildtool/build_engine/expression/function_map.hpp" @@ -78,7 +79,8 @@ TEST_CASE("Expression access", "[expression]") { // NOLINT CHECK(result->Result() == result_t{boolean, number, string}); CHECK_THROWS_AS(result->String(), Expression::ExpressionTypeError); - CHECK_THAT(list->List(), Catch::Equals<ExpressionPtr>({number})); + CHECK_THAT(list->List(), + Catch::Matchers::Equals<ExpressionPtr>({number})); CHECK_THROWS_AS(list->Map(), Expression::ExpressionTypeError); REQUIRE(map->Map().at("3"s) == number); |