From f457c4b89ff9607989b3764ede3342df2f387ef7 Mon Sep 17 00:00:00 2001 From: Philipp Grulich Date: Thu, 8 Feb 2024 21:04:59 +0100 Subject: [PATCH] first commit --- nautilus-api/test/CMakeLists.txt | 2 +- .../test/Interface/IntegerTypeTest.cpp | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/nautilus-api/test/CMakeLists.txt b/nautilus-api/test/CMakeLists.txt index c517977f..c7e048a4 100644 --- a/nautilus-api/test/CMakeLists.txt +++ b/nautilus-api/test/CMakeLists.txt @@ -18,4 +18,4 @@ target_link_libraries(nautilus-api-tests PUBLIC nautilus-api nautilus-jit nautil list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) include(CTest) include(Catch) -catch_discover_tests(nautilus-api-tests) \ No newline at end of file +catch_discover_tests(nautilus-api-tests EXTRA_ARGS --allow-running-no-tests) \ No newline at end of file diff --git a/nautilus-api/test/Interface/IntegerTypeTest.cpp b/nautilus-api/test/Interface/IntegerTypeTest.cpp index 7f532418..0eb02da1 100644 --- a/nautilus-api/test/Interface/IntegerTypeTest.cpp +++ b/nautilus-api/test/Interface/IntegerTypeTest.cpp @@ -31,30 +31,30 @@ namespace NES::Nautilus { } }SECTION("bitwise operators") { SECTION("&") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(42)); auto f2 = Value(static_cast(42)); //auto res = f1 & f2; //REQUIRE(res == static_cast(84)); }SECTION("|") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(42)); auto f2 = Value(static_cast(42)); //auto res = f1 | f2; //REQUIRE(res == static_cast(84)); }SECTION("^") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(42)); auto f2 = Value(static_cast(42)); //auto res = f1 ^ f2; //REQUIRE(res == static_cast(84)); }SECTION("~") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(42)); //auto res = ~f1; //REQUIRE(res == static_cast(84)); }SECTION("<<") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(42)); auto f2 = Value(static_cast(42)); //auto res = f1 << f2; @@ -89,13 +89,13 @@ namespace NES::Nautilus { auto res = f1 / f2; REQUIRE(res == static_cast(3)); }SECTION("%") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(13)); auto f2 = Value(static_cast(5)); - //auto res = f1 % f2; - //REQUIRE(res == static_cast(3)); + auto res = f1 % f2; + REQUIRE(res == static_cast(3)); }SECTION("++") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(3)); //auto res = f1++; //REQUIRE(res == static_cast(4)); @@ -104,7 +104,7 @@ namespace NES::Nautilus { //REQUIRE(res2 == static_cast(4)); //REQUIRE(f1 == static_cast(4)); }SECTION("--") { - SUCCEED("Not Implemented"); + SKIP("Not Implemented"); auto f1 = Value(static_cast(3)); //auto res = f1--; //REQUIRE(res == static_cast(2));