mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:58:12 +00:00
AK: Fix the signature of binary_search.
This commit is contained in:
parent
18b3de7555
commit
8e08d9f70a
2 changed files with 6 additions and 6 deletions
|
@ -50,9 +50,9 @@ TEST_CASE(array_doubles)
|
|||
{
|
||||
double doubles[] = { 1.1, 9.9, 33.33 };
|
||||
|
||||
auto test1 = *binary_search({ doubles, 3 }, 1.1, AK::integral_compare<double>);
|
||||
auto test2 = *binary_search({ doubles, 3 }, 9.9, AK::integral_compare<double>);
|
||||
auto test3 = *binary_search({ doubles, 3 }, 33.33, AK::integral_compare<double>);
|
||||
auto test1 = *binary_search(Span<double> { doubles, 3 }, 1.1, AK::integral_compare<double>);
|
||||
auto test2 = *binary_search(Span<double> { doubles, 3 }, 9.9, AK::integral_compare<double>);
|
||||
auto test3 = *binary_search(Span<double> { doubles, 3 }, 33.33, AK::integral_compare<double>);
|
||||
EXPECT_EQ(test1, 1.1);
|
||||
EXPECT_EQ(test2, 9.9);
|
||||
EXPECT_EQ(test3, 33.33);
|
||||
|
@ -110,7 +110,7 @@ TEST_CASE(no_elements)
|
|||
|
||||
TEST_CASE(huge_char_array)
|
||||
{
|
||||
const size_t N = 2147483680;
|
||||
const size_t N = 2147483680;
|
||||
Bytes span { new (std::nothrow) u8[N], N };
|
||||
EXPECT(span.data() != nullptr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue