mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-24 09:15:31 -06:00
317cb85566
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>
26 lines
448 B
YAML
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"
|