mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-08-03 15:11:40 +00:00
Add test
This commit is contained in:
parent
396bde57b3
commit
5fa167b944
1 changed files with 10 additions and 0 deletions
|
|
@ -81,6 +81,16 @@ final class ParameterDTOTest extends TestCase
|
|||
'test'
|
||||
];
|
||||
|
||||
//Test inverse AWG range
|
||||
yield [
|
||||
new ParameterDTO('test', value_min: 14, value_max: 22, unit: 'AWG', symbol: 'm', group: 'test'),
|
||||
'test',
|
||||
'22..14',
|
||||
'AWG',
|
||||
'm',
|
||||
'test'
|
||||
];
|
||||
|
||||
//Test ranges with tilde
|
||||
yield [
|
||||
new ParameterDTO('test', value_min: -1.0, value_max: 2.0, unit: 'kg', symbol: 'm', group: 'test'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue