From ea287c17533f3d042b0df4f9b07b129e355c4cfb Mon Sep 17 00:00:00 2001 From: Marcel van Lohuizen Date: Wed, 15 Apr 2026 12:08:57 +0200 Subject: [PATCH] cue/testdata: force update cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We will use CUE_UPDATE=force in some follow up CLs. This exposed that some files will be updated as a result. Move this in a separate CL to avoid clutter. Signed-off-by: Marcel van Lohuizen Change-Id: I0a38a332cf9bc94740ac8ee49990a7f0ef5401d4 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1235494 TryBot-Result: CUEcueckoo Reviewed-by: Daniel Martí Unity-Result: CUE porcuepine --- cue/testdata/builtins/issue4208.txtar | 4 +-- .../036_closing_with_failed_optional.txtar | 4 +-- cue/testdata/definitions/exclude.txtar | 4 +-- cue/testdata/definitions/issue3834.txtar | 4 +-- cue/testdata/definitions/root5.txtar | 4 +-- ...20_complex_interaction_of_groundness.txtar | 2 +- cue/testdata/resolve/011_bounds.txtar | 34 +++++++++---------- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/cue/testdata/builtins/issue4208.txtar b/cue/testdata/builtins/issue4208.txtar index 6ee9b69f1..2df35cb65 100644 --- a/cue/testdata/builtins/issue4208.txtar +++ b/cue/testdata/builtins/issue4208.txtar @@ -15,7 +15,7 @@ invalid: #Envs invalid: foo: {} @test(err, code=eval, contains="field not allowed", incorrect) @test(err:todo, code=eval, contains="Must specify a valid environment") -@test(debug, #""" +@test(debug, """ (_|_){ // [eval] #Environment: (string){ |((string){ "sbx" }, (string){ "stg" }, (string){ "pro" }) } @@ -33,7 +33,7 @@ invalid: foo: {} @test(err, code=eval, contains="field not allowed", incorrect) } } } - """#) + """) -- out/errors.txt -- [eval] invalid.foo: field not allowed: diff --git a/cue/testdata/definitions/036_closing_with_failed_optional.txtar b/cue/testdata/definitions/036_closing_with_failed_optional.txtar index 96851501f..ce0f680e4 100644 --- a/cue/testdata/definitions/036_closing_with_failed_optional.txtar +++ b/cue/testdata/definitions/036_closing_with_failed_optional.txtar @@ -17,7 +17,7 @@ o1: {a?: 3} & {a?: 4} @test(eq, {a?: _|_}) @test(closed=false) }) // Note: a? can be discarded safely. -v1: #d1 & {a?: 3, b: 4} @test(closed) @test(eq, {b: 4}) @test(debug, #""" +v1: #d1 & {a?: 3, b: 4} @test(closed) @test(eq, {b: 4}) @test(debug, """ (#struct){ a?: (_|_){ // [eval] v1.a: conflicting values 2 and 3: @@ -27,7 +27,7 @@ v1: #d1 & {a?: 3, b: 4} @test(closed) @test(eq, {b: 4}) @test(debug, #""" } b: (int){ 4 } } - """#) + """) #A: {a: int} -- out/errors.txt -- diff --git a/cue/testdata/definitions/exclude.txtar b/cue/testdata/definitions/exclude.txtar index c1fb07772..5d16e5a98 100644 --- a/cue/testdata/definitions/exclude.txtar +++ b/cue/testdata/definitions/exclude.txtar @@ -5,7 +5,7 @@ excludeLet: { // Two lets with the same name should not unify and checked by definition. #D: { let X = {}, #foo: X, f: _ } a: #D - a: { let X = { a: 1 }, f: X } @test(debugCheck, #""" + a: { let X = { a: 1 }, f: X } @test(debugCheck, """ (#struct){ let X#2 = (struct){ a: (int){ 1 } @@ -18,7 +18,7 @@ excludeLet: { #foo: (#struct){ } } - """#) + """) @test(eq, { #D: { diff --git a/cue/testdata/definitions/issue3834.txtar b/cue/testdata/definitions/issue3834.txtar index d6c196269..4564a381b 100644 --- a/cue/testdata/definitions/issue3834.txtar +++ b/cue/testdata/definitions/issue3834.txtar @@ -95,7 +95,7 @@ sub: t4: { _a: _ | close({y!: z?: _}) _b: _a & {y: {}} concrete: _b.y @test(eq, {}) - @test(debug, #""" + @test(debug, """ (#struct){ _a: (#struct){ foo: (bool){ true } @@ -108,7 +108,7 @@ sub: t4: { concrete: (#struct){ } } - """#) + """) } #X diff --git a/cue/testdata/definitions/root5.txtar b/cue/testdata/definitions/root5.txtar index f1b83712c..e80357abd 100644 --- a/cue/testdata/definitions/root5.txtar +++ b/cue/testdata/definitions/root5.txtar @@ -33,7 +33,7 @@ x: { } }) // TODO(inline): fix sharing detection across hidden fields. -@test(debug, #""" +@test(debug, """ (#struct){ _schema: ~(#Schema) #Schema: (#struct){ @@ -58,7 +58,7 @@ x: { c: (string){ "foo" } } } - """#) + """) -- out/eval/stats -- Leaks: 0 Freed: 16 diff --git a/cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar b/cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar index 39775e131..d4a6546ed 100644 --- a/cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar +++ b/cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar @@ -8,7 +8,7 @@ a: b: c: d: string res: [ {d: "b", s: "ab"} ] a: b: c: { d: string - s: _|_ @test(err, code=incomplete, pos=[4:23, 4:34, 5:13]) + s: _|_ @test(err, code=incomplete, pos=[4:34, 4:23, 5:13]) } }) -- out/compile -- diff --git a/cue/testdata/resolve/011_bounds.txtar b/cue/testdata/resolve/011_bounds.txtar index 58ac2b538..bc2b1c3fc 100644 --- a/cue/testdata/resolve/011_bounds.txtar +++ b/cue/testdata/resolve/011_bounds.txtar @@ -71,32 +71,32 @@ e9: >"a" & <1 @test(err, code=eval, contains="conflicting values", pos=[0:5, 0:1 ./in.cue:51:20 ./in.cue:51:13 [eval] e1: conflicting values null and !=null (mismatched types null and (bool|string|bytes|func|list|struct|number)): - ./in.cue:57:5 - ./in.cue:57:12 + ./in.cue:56:5 + ./in.cue:56:12 [eval] e2: conflicting values null and !=null (mismatched types null and (bool|string|bytes|func|list|struct|number)): - ./in.cue:58:5 - ./in.cue:58:14 + ./in.cue:57:5 + ./in.cue:57:14 [eval] e3: invalid value 1 (out of bound >1): + ./in.cue:58:5 + ./in.cue:58:10 +[eval] e4: invalid value 0 (out of bound <0): ./in.cue:59:5 ./in.cue:59:10 -[eval] e4: invalid value 0 (out of bound <0): - ./in.cue:60:5 - ./in.cue:60:10 [eval] e5: incompatible number bounds <0 and >1: - ./in.cue:61:10 - ./in.cue:61:5 + ./in.cue:60:10 + ./in.cue:60:5 [eval] e6: incompatible number bounds <11 and >11: - ./in.cue:62:11 - ./in.cue:62:5 + ./in.cue:61:11 + ./in.cue:61:5 [eval] e7: incompatible number bounds <11 and >=11: - ./in.cue:63:12 - ./in.cue:63:5 + ./in.cue:62:12 + ./in.cue:62:5 [eval] e8: incompatible number bounds <=11 and >11: - ./in.cue:64:11 - ./in.cue:64:5 + ./in.cue:63:11 + ./in.cue:63:5 [eval] e9: conflicting values >"a" and <1 (mismatched types string and number): - ./in.cue:65:5 - ./in.cue:65:12 + ./in.cue:64:5 + ./in.cue:64:12 -- out/compile -- --- in.cue { -- 2.51.2