php-ml/tests/Phpml/Dataset/Demo/WineTest.php
2016-04-25 20:16:53 +02:00

23 lines
494 B
PHP

<?php
declare (strict_types = 1);
namespace tests\Phpml\Dataset\Demo;
use Phpml\Dataset\Demo\Wine;
class WineTest extends \PHPUnit_Framework_TestCase
{
public function testLoadingWineDataset()
{
$wine = new Wine();
// whole dataset
$this->assertEquals(178, count($wine->getSamples()));
$this->assertEquals(178, count($wine->getLabels()));
// one sample features count
$this->assertEquals(13, count($wine->getSamples()[0]));
}
}