Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

all: consistently split test table structs master

It is common to separate multi-line structs in test case lists like so: { many: "x", fields: "y", }, { many: "x", fields: "y", }, { many: "x", fields: "y", } However, some of our test files used a different style: { many: "x", fields: "y"}, { many: "x", fields: "y"}, { many: "x", fields: "y", } This style is inconsistent, in that the last field does not finish with a comma and a newline. But most importantly, it harms readability, as it gets harder to spot when one struct finishes and another starts. Since we already use the more readable style in the majority of cases, switch these few files over too. Note that these files already used the better style in some cases, but not all of them. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I6cacae679af4446c36b19a57d55bdf706c6e3a58 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1222868 Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>


+76 -38
4 changed files