mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-19 19:55:10 +00:00
19 lines
356 B
PHP
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]);
|
|
}
|
|
|
|
}
|