Skip to content

Commit

Permalink
internal/diff: add matrix test
Browse files Browse the repository at this point in the history
We should enable this in case field properties are
not handled correctly for structure sharing.

Issue #3060

Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: I85f70df74b3c4449ee4f5c729668638b8246882f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194404
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
  • Loading branch information
mpvl committed May 7, 2024
1 parent a080c35 commit 4c60191
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"testing"

"cuelang.org/go/cue"
"cuelang.org/go/internal/core/runtime"
"cuelang.org/go/internal/cuetdtest"
)

func TestDiff(t *testing.T) {
Expand Down Expand Up @@ -402,8 +404,9 @@ a: x: "hello"
y: `1 & 4`,
}}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
cuetdtest.FullMatrix.Run(t, tc.name, func(t *cuetdtest.M) {
var r cue.Runtime
t.UpdateRuntime((*runtime.Runtime)(&r))
x, err := r.Compile("x", tc.x)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 4c60191

Please sign in to comment.