예제 #1
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_max_throws_exception_when_empty()
 {
     $tree = new RedBlackSearchTree(new ComparableComparator());
     $tree->max();
 }
예제 #2
0
파일: SortedSet.php 프로젝트: novuso/system
 /**
  * {@inheritdoc}
  */
 public function max()
 {
     return $this->tree->max();
 }