sync current state

This commit is contained in:
2026-03-01 11:43:38 +01:00
parent 147ced281f
commit 4c8bcba514
12 changed files with 538 additions and 131 deletions

View File

@@ -66,4 +66,23 @@ struct BulkHealthTests {
#expect(output != nil)
#expect(output == "2020-06-03T19:52:27Z")
}
@Test
func integerLookupFormatterMapsDiscreteValues() {
let output = ImportFieldFormatterEngine.apply(
sourceText: "3",
config: FieldFormatterConfig(
formatterType: .integerLookupToNumber,
integerLookup: [
"0": "-1.0",
"1": "-0.5",
"2": "0.0",
"3": "0.5",
"4": "1.0"
]
)
)
#expect(output == "0.5")
}
}