Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGrulich committed Feb 8, 2024
1 parent 18c58a4 commit f457c4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion nautilus-api/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
catch_discover_tests(nautilus-api-tests EXTRA_ARGS --allow-running-no-tests)
20 changes: 10 additions & 10 deletions nautilus-api/test/Interface/IntegerTypeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,30 @@ namespace NES::Nautilus {
}
}SECTION("bitwise operators") {
SECTION("&") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(42));
auto f2 = Value<TestType>(static_cast<typename TestType::RawType>(42));
//auto res = f1 & f2;
//REQUIRE(res == static_cast<typename TestType::RawType>(84));
}SECTION("|") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(42));
auto f2 = Value<TestType>(static_cast<typename TestType::RawType>(42));
//auto res = f1 | f2;
//REQUIRE(res == static_cast<typename TestType::RawType>(84));
}SECTION("^") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(42));
auto f2 = Value<TestType>(static_cast<typename TestType::RawType>(42));
//auto res = f1 ^ f2;
//REQUIRE(res == static_cast<typename TestType::RawType>(84));
}SECTION("~") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(42));
//auto res = ~f1;
//REQUIRE(res == static_cast<typename TestType::RawType>(84));
}SECTION("<<") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(42));
auto f2 = Value<TestType>(static_cast<typename TestType::RawType>(42));
//auto res = f1 << f2;
Expand Down Expand Up @@ -89,13 +89,13 @@ namespace NES::Nautilus {
auto res = f1 / f2;
REQUIRE(res == static_cast<typename TestType::RawType>(3));
}SECTION("%") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(13));
auto f2 = Value<TestType>(static_cast<typename TestType::RawType>(5));
//auto res = f1 % f2;
//REQUIRE(res == static_cast<typename TestType::RawType>(3));
auto res = f1 % f2;
REQUIRE(res == static_cast<typename TestType::RawType>(3));
}SECTION("++") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(3));
//auto res = f1++;
//REQUIRE(res == static_cast<typename TestType::RawType>(4));
Expand All @@ -104,7 +104,7 @@ namespace NES::Nautilus {
//REQUIRE(res2 == static_cast<typename TestType::RawType>(4));
//REQUIRE(f1 == static_cast<typename TestType::RawType>(4));
}SECTION("--") {
SUCCEED("Not Implemented");
SKIP("Not Implemented");
auto f1 = Value<TestType>(static_cast<typename TestType::RawType>(3));
//auto res = f1--;
//REQUIRE(res == static_cast<typename TestType::RawType>(2));
Expand Down

0 comments on commit f457c4b

Please sign in to comment.