Update prueba

This commit is contained in:
Juan Pablo Vial
2025-04-30 10:38:05 -04:00
parent eeb6f5bcd1
commit 41ea5f5c15

View File

@ -22,6 +22,8 @@ class ValorTest extends TestCase
return [ return [
['1.003.000,01', 1003000.01], ['1.003.000,01', 1003000.01],
['4,273.84', 4273.84], ['4,273.84', 4273.84],
[443.75, 443.75],
['443.75', 443.75]
]; ];
} }
@ -36,6 +38,14 @@ class ValorTest extends TestCase
$this->assertEquals($expected, $result); $this->assertEquals($expected, $result);
} }
public static function ufsDataProvider(): array
{
return [
['1000000', 28.57143],
[443.75, 443.75]
];
}
public function testToUF() public function testToUF()
{ {
$date = '2025-01-01'; $date = '2025-01-01';