arturo
arturo copied to clipboard
[Converters] Make sure `convertedValueToType` works fine + add tests
[Converters] Make sure convertedValueToType
works fine + add tests
https://github.com/arturo-lang/arturo/blob/ce734e7a32c73173910cdf8f533f56be21febe3b/src/library/Converters.nim#L66
return res
# TODO(Converters) Make sure `convertedValueToType` works fine + add tests
# labels: library, cleanup, unit-test
proc convertedValueToType*(x, y: Value, tp: ValueKind, aFormat = VNULL): Value =
if y.kind == tp and y.kind!=Dictionary and y.kind!=Quantity:
return y
7f18bbffbdfabe2eeb4b581f6cb23501ade9276f