rcl/golden/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
..
_import.txt Add golden test for std.read_file_utf8 2023-11-04 20:18:06 +01:00
boolean_logic.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
comparisions.test Lift Int restriction on comparison operators 2024-12-08 12:34:21 +01:00
conditional.test Optionally allow a colon after "else" in grammar 2024-07-31 21:46:23 +02:00
dict_comprehension.test Apply "dict" terminology consistently 2023-09-24 12:54:54 +02:00
dict_contains.test Add Set.contains builtin 2023-09-24 12:59:17 +02:00
dict_except.test Add goldens for new methods 2023-12-16 16:19:04 +01:00
dict_get.test Apply "dict" terminology consistently 2023-09-24 12:54:54 +02:00
dict_index.test Add and update golden tests for dict indexing 2023-12-29 18:31:55 +01:00
dict_len.test Add golden tests to cover Dict.len and List.len 2023-09-30 22:05:08 +02:00
dict_union.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
dict_values_strings.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
double_negation.test Change output separator for golden tests 2023-08-13 17:39:04 +02:00
empty_dict.test Ensure {} is a dict, not a set 2023-09-24 12:28:45 +02:00
field.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
fstring.test Make null usable in string interpolation 2024-01-30 21:22:44 +01:00
fstring_escapes.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
fstring_nested.test Add golden test for nested f-strings 2023-08-27 20:11:46 +02:00
fstring_triple.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
function_call.test Add golden tests for lambda functions 2023-11-30 00:20:03 +01:00
function_capture_environment.test Add golden tests for lambda functions 2023-11-30 00:20:03 +01:00
function_compare.test Add golden test to cover function comparsion 2023-11-30 19:45:26 +01:00
function_first_class.test Test that passing functions to functions works 2023-11-30 19:45:26 +01:00
integer_arithmetic.test Implement unary negation 2023-11-22 20:09:19 +01:00
integer_comparisons.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
integer_literals.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
list_comprehension_list.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
list_comprehension_set.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
list_contains.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
list_index.test Update and extend golden tests for Int->Number rename 2025-02-24 20:42:59 +01:00
list_join.test Add golden for List.join 2024-01-30 21:22:44 +01:00
list_len.test Add golden tests to cover Dict.len and List.len 2023-09-30 22:05:08 +02:00
list_reverse.test Add golden for List.reverse 2023-12-12 00:27:31 +01:00
negation.test Change output separator for golden tests 2023-08-13 17:39:04 +02:00
null.test Add null 2023-09-08 19:33:50 +02:00
number_exponent.test Add regression test for 1e0 number format 2025-08-22 19:54:07 +02:00
number_literal_precision.test Rename golden tests to better match the type 2025-02-25 21:10:01 +01:00
number_roundtrip.test Extend decimal fuzzer for roundtrips, fix issue 2025-02-24 20:42:59 +01:00
operator_eq_neq.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
set_comprehension_empty.test Fix how a {}-comprehension's type is resolved 2023-09-24 13:48:36 +02:00
set_contains.test Add Set.contains builtin 2023-09-24 12:59:17 +02:00
set_len.test Add Set.len builtin 2023-09-24 15:33:47 +02:00
set_to_array.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00
set_union.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
std_format_json.test Add golden tests for std.format_json 2025-06-28 21:50:20 +02:00
std_range.test Add goldens for std.range 2023-12-12 00:27:31 +01:00
std_read_file_utf8.test Add golden test for std.read_file_utf8 2023-11-04 20:18:06 +01:00
string_chars.test Add golden for String.chars, fix bug in it 2023-12-27 12:48:17 +01:00
string_contains.test Add golden tests for new String builtin methods 2023-12-26 14:32:26 +01:00
string_ends_with.test Add golden tests for new String builtin methods 2023-12-26 14:32:26 +01:00
string_escapes.test Allow escaping } in strings 2024-03-02 19:37:30 +01:00
string_len.test Use ':' in assertions rather than ',' 2025-09-29 20:28:15 +02:00
string_replace.test Add String.replace builtin method 2024-01-30 21:22:44 +01:00
string_starts_with.test Add golden tests for new String builtin methods 2023-12-26 14:32:26 +01:00
strings.test Fix bug where leading \n in "-string would be eaten 2023-09-30 15:44:04 +02:00
trace.test Attribute trace spans to the message, not keyword 2023-12-02 14:20:44 +01:00
unambiguous_unop.test Convert json output to use the pretty-printer 2023-09-23 18:37:46 +02:00