sync current state
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user