go-jsonnet/testdata/builtinSubStr_second_parameter_not_integer.golden
Weston McNamee 27b4c60bc7 feat: Improve performance of substr by 84.44%
This pulls in the implementation of substr into native Go instead of interpretted Jsonnet.

benchmark                       old ns/op     new ns/op     delta
Benchmark_Builtin_substr-16     97121527      15115905      -84.44%

part of #111
2020-01-26 09:20:58 +01:00

11 lines
312 B
Plaintext

RUNTIME ERROR: substr second parameter should be an integer, got 1.200000
-------------------------------------------------
testdata/builtinSubStr_second_parameter_not_integer:1:1-28 builtin function <substr>
std.substr("hello", 1.2, 5)
-------------------------------------------------
During evaluation