Update SearchesTest.php

This commit is contained in:
1101 2022-08-03 12:36:25 +08:00 committed by GitHub
parent 921baa7328
commit 27ce6d2c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,14 +136,6 @@ class SearchesTest extends TestCase
assertEquals(5, $result);
}
public function testUpperBound()
{
$list = [1, 2, 3, 3, 3, 4, 5, 9];
$target = 3;
$result = upperBound($list, $target);
assertEquals(5, $result);
}
public function testJumpSearch()
{
$list = array( 3,5,6,7,9,10,12,20,22,24);