diff options
author | Lioncash <mathew1800@gmail.com> | 2021-01-15 08:02:57 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-01-15 08:15:32 +0100 |
commit | 8620de6b2030bef35360d029354f672cde8978f1 (patch) | |
tree | ed1f105b1fef3fc9a5209c5106accaaee283ebf2 /src/tests | |
parent | Merge pull request #5354 from ReinUsesLisp/remove-common-color (diff) | |
download | yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.gz yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.bz2 yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.lz yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.xz yuzu-8620de6b2030bef35360d029354f672cde8978f1.tar.zst yuzu-8620de6b2030bef35360d029354f672cde8978f1.zip |
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/tests/common/bit_utils.cpp | 23 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 8a606b448..33fa89583 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,6 +1,5 @@ add_executable(tests common/bit_field.cpp - common/bit_utils.cpp common/fibers.cpp common/param_package.cpp common/ring_buffer.cpp diff --git a/src/tests/common/bit_utils.cpp b/src/tests/common/bit_utils.cpp deleted file mode 100644 index 479b5995a..000000000 --- a/src/tests/common/bit_utils.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include <catch2/catch.hpp> -#include <math.h> -#include "common/bit_util.h" - -namespace Common { - -TEST_CASE("BitUtils::CountTrailingZeroes", "[common]") { - REQUIRE(Common::CountTrailingZeroes32(0) == 32); - REQUIRE(Common::CountTrailingZeroes64(0) == 64); - REQUIRE(Common::CountTrailingZeroes32(9) == 0); - REQUIRE(Common::CountTrailingZeroes32(8) == 3); - REQUIRE(Common::CountTrailingZeroes32(0x801000) == 12); - REQUIRE(Common::CountTrailingZeroes64(9) == 0); - REQUIRE(Common::CountTrailingZeroes64(8) == 3); - REQUIRE(Common::CountTrailingZeroes64(0x801000) == 12); - REQUIRE(Common::CountTrailingZeroes64(0x801000000000UL) == 36); -} - -} // namespace Common |