Files
releases/test/cases/testdata/sprintf/test-sprintf.yaml
T
Stephan Renatus 317cb85566 Revert "sprintf: fix formatting of numbers in float/int verbs (#4620)" (#4794)
This reverts commit 2fbc99c324.

See #4771 for details.

We'll get this back in, but we're backing out of it for now.
So, the previous (annoying, buggy) behavior is going to come back, but a
proper, future fix of the sprintf behaviour will incorporate this work.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2022-06-20 11:14:21 +02:00

26 lines
448 B
YAML

cases:
- data:
modules:
- |
package test
p = x {
x = sprintf("%s", [123456789123456789123])
}
note: sprintf/big_int
query: data.test.p = x
want_result:
- x: "123456789123456789123"
- data:
modules:
- |
package test
p = x {
x = sprintf("%s", [1208925819614629174706175])
}
note: sprintf/big_int/max_cert_serial_number
query: data.test.p = x
want_result:
- x: "1208925819614629174706175"