rcl/golden/json/integer_literals.test
Ruud van Asseldonk d0a8a52086 Convert json output to use the pretty-printer
This enables pretty json output, so I can actually read what is going on
without having to pipe the output through jq. I also have an idea to add
support for color to the pretty-printer, that can easily be enabled or
disabled at the config level.
2023-09-23 18:37:46 +02:00

23 lines
309 B
Text

[
// Regular integers.
42,
0,
// With numeric underscores.
1_000_000,
// Hexadecimal.
0xc0ffee,
// Hexadecimal with numeric underscores.
0x_c0_ff_ee,
// Binary.
0b10001,
// Binary with numeric underscores,
0b_0001_0001,
]
# output:
[42, 0, 1000000, 12648430, 12648430, 17, 17]