Пример #1
0
 public function testSentinelSearch()
 {
     $count = \count($this->_Nums);
     $this->assertEquals(0, $this->_Nums->sentinelSearch(378466));
     $this->assertEquals(6, $this->_Nums->sentinelSearch(0.1));
     $this->assertEquals(ArrayList::NO_INDEX, $this->_Nums->sentinelSearch(1000));
     $this->assertCount($count, $this->_Nums);
 }