Skip to content

Commit

Permalink
Added test for change on ParamterDTO done by PR #530
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Feb 24, 2024
1 parent 05ec7ab commit e1f1d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Services/InfoProviderSystem/DTOs/ParameterDTOTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public function testSplitIntoValueAndUnit(): void
$this->assertEquals(['1.0', 'C_m'], ParameterDTO::splitIntoValueAndUnit('1.0C_m'));
$this->assertEquals(["70", ""], ParameterDTO::splitIntoValueAndUnit("70℃"));

$this->assertEquals(["-5.0", "kg"], ParameterDTO::splitIntoValueAndUnit("-5.0 kg"));

$this->assertNull(ParameterDTO::splitIntoValueAndUnit('kg'));
$this->assertNull(ParameterDTO::splitIntoValueAndUnit('Test'));
}
Expand Down

0 comments on commit e1f1d10

Please sign in to comment.