rcl/golden/error_json
Ruud van Asseldonk 7137cd5a91 Use ':' in assertions rather than ','
Initially I used a comma after assertions, like Python. It was always
a bit weird (even in Python), it's a statement but it has arguments.
This made formatting akward too. I justified it for myself by saying
"it's just a function call, but without the parens". That's how we
currently format it.

Then yesterday I was skimming through the Jsonnet docs, and they use
a colon rather than comma, and that looks much more pleasant! I should
steal the good ideas; if RCL can fix list comprehension order w.r.t
Python, then it can also fix this one.

For compatibility, accept the comma as well (for now), but make the
formatter emit the colon. Similar to the colon after 'else', it does
not have to be a breaking change.
2025-09-29 20:28:15 +02:00
..
builtin_function.test Save body span info in the loader 2024-06-18 20:22:33 +02:00
builtin_function_span.test Use ':' in assertions rather than ',' 2025-09-29 20:28:15 +02:00
builtin_method.test Save body span info in the loader 2024-06-18 20:22:33 +02:00
inner_error_value_path.test Restructure builtin methods, generate boilerplate 2023-11-04 20:17:23 +01:00
lambda_function.test Add golden tests for lambda functions 2023-11-30 00:20:03 +01:00
non_string_key.test Include non-string key in json key errors 2024-03-17 21:46:39 +01:00
std_format_json_builtin_method.test Add golden tests for std.format_json 2025-06-28 21:50:20 +02:00