Skip to content

Commit

Permalink
Fix Is::Not::InRange
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Aug 6, 2024
1 parent ec6d8f3 commit 314a877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Source/UEST/Private/UESTTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ TEST(UEST, SimpleTest)
ASSERT_THAT(-1, Is::Not::Positive);

ASSERT_THAT(1, Is::InRange<int>(0, 2));
// TODO: Doesn't compile. Need more coffee to understand how to fix.
// ASSERT_THAT(1, Is::Not::InRange<int>(2, 4));
ASSERT_THAT(1, Is::Not::InRange<int>(2, 4));
}

TEST_CLASS(UEST, SimpleTestClass)
Expand Down
2 changes: 1 addition & 1 deletion Source/UEST/Public/UEST.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ namespace Is
const auto Negative = LessThan<int64>(0);

template<typename T>
using InRange = UEST::Passthrough<UEST::Matchers::Not<UEST::Matchers::InRange, T, T>, T, T>;
using InRange = UEST::Passthrough<UEST::Matchers::Not<UEST::Matchers::InRange, T, T, T>, T, T, T>;
} // namespace Not
} // namespace Is

Expand Down

0 comments on commit 314a877

Please sign in to comment.