Skip to content

Commit

Permalink
Fix UT build error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jan 30, 2025
1 parent 4082cbb commit 6cff2b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions Tests/UnitTests/HelpersTests/Tests.h

This file was deleted.

1 change: 0 additions & 1 deletion Tests/UnitTests/UnitTests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "FeatureTests/HudFeaturesTests/Tests.h"
#include "HelpersTests/Tests.h"
#include "MemorySearchTests/Tests.h"
#include "PlatformTests/Tests.h"
#include "UtilsTests/Tests.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#include <gtest/gtest.h>

#include <Helpers/Bits.h>
#include <Utils/Bits.h>

namespace
{

TEST(Helpers_CountrZero, PassingZeroRaisesDebugAssertion) {
TEST(CountrZero, PassingZeroRaisesDebugAssertion) {
EXPECT_DEBUG_DEATH(std::ignore = bits::countrZero(0), "");
}

Expand All @@ -18,13 +18,13 @@ struct CountrZeroParam {
int firstSetBitIndex;
};

class Helpers_CountrZeroWithParam : public testing::TestWithParam<CountrZeroParam> {};
class CountrZeroWithParam : public testing::TestWithParam<CountrZeroParam> {};

TEST_P(Helpers_CountrZeroWithParam, IndexOfFirstSetBitFromRightIsReturned) {
TEST_P(CountrZeroWithParam, IndexOfFirstSetBitFromRightIsReturned) {
EXPECT_EQ(bits::countrZero(GetParam().x), GetParam().firstSetBitIndex);
}

INSTANTIATE_TEST_SUITE_P(, Helpers_CountrZeroWithParam, testing::Values(
INSTANTIATE_TEST_SUITE_P(, CountrZeroWithParam, testing::Values(
CountrZeroParam{ 1, 0 },
CountrZeroParam{ 0b100001000, 3 },
CountrZeroParam{ 1u << 31, 31 }
Expand Down
1 change: 1 addition & 0 deletions Tests/UnitTests/UtilsTests/Tests.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "BitsTests.h"
#include "FlagsBuilderTests.h"
#include "OptionalTests.h"
#include "PatternFinderTests.h"
Expand Down

0 comments on commit 6cff2b1

Please sign in to comment.