php-ml/tests/Phpml/Metric/DistanceTest.php
2016-04-04 22:38:51 +02:00

19 lines
356 B
PHP

<?php
declare(strict_types = 1);
namespace tests\Phpml\Metric;
use Phpml\Metric\Distance;
class DistanceTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException
*/
public function testThrowExceptionOnInvalidArguments()
{
Distance::euclidean([0, 1, 2], [0, 2]);
}
}