mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Add trivial test case
This commit is contained in:
parent
a504f6bd0e
commit
68f3ecc6f9
|
|
@ -70,4 +70,10 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase
|
|||
[5, 1, 4, 2, 8], [$this->list[0]->value, $this->list[1]->value, $this->list[2]->value, $this->list[3]->value, $this->list[4]->value,]
|
||||
);
|
||||
}
|
||||
|
||||
public function testNoBuckets() : void
|
||||
{
|
||||
$newList = BucketSort::sort($this->list, 0, \phpOMS\Algorithm\Sort\SelectionSort::class);
|
||||
self::assertEquals([], $newList);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user