split utils, separate IRVE guess

This commit is contained in:
Tykayn 2025-04-11 15:53:23 +02:00 committed by tykayn
parent b4c28335b2
commit a732edc228
12 changed files with 460 additions and 363 deletions

View file

@ -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)