Skip to content

Commit eb3b539

Browse files
committed
internal/cuetxtar: fix ordering bug
Fix bug that slipped in with the review process that caused sorting to be inverted. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I67e909363257e513ff0f2fe62c8f9dd295751b16 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199803 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent bbe2f81 commit eb3b539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cuetxtar/txtar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ func (x *TxTarTest) run(t *testing.T, f func(tc *Test)) {
624624
if !ok {
625625
q = len(a.Files)
626626
}
627-
return q - p
627+
return p - q
628628
})
629629

630630
err = os.WriteFile(fullpath, txtar.Format(a), 0644)

0 commit comments

Comments
 (0)