mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-04 17:04:53 +02:00
split utils, separate IRVE guess
This commit is contained in:
parent
b4c28335b2
commit
a732edc228
12 changed files with 460 additions and 363 deletions
|
@ -177,6 +177,11 @@ describe('find max in enum', () => {
|
|||
expect(max).toBe(10)
|
||||
})
|
||||
|
||||
test('value has enums with kW units', () => {
|
||||
let value = '12 kW;120 kW'
|
||||
let max = utils.find_max_in_string(value)
|
||||
expect(max).toBe(120)
|
||||
})
|
||||
test('value has no enums', () => {
|
||||
let max = utils.find_max_in_string('10')
|
||||
console.log('max', max)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue