Skip to content

Commit e1862b0

Browse files
committed
chorse: Fix formatting
1 parent cdc3559 commit e1862b0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pkg/dag/perm/dot_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ func TestWriteDOTNodePNode(t *testing.T) {
105105
dot := tree.ToDOT([]string{"a", "b", "c"})
106106

107107
// P nodes should be labeled "P"
108-
if strings.Contains(dot, `label="P"`) {
109-
// Good - has P node
108+
if !strings.Contains(dot, `label="P"`) {
109+
t.Error("ToDOT() should contain P node")
110110
}
111111
}
112112

@@ -119,8 +119,8 @@ func TestWriteDOTNodeQNode(t *testing.T) {
119119
dot := tree.ToDOT([]string{"a", "b", "c", "d"})
120120

121121
// Q nodes should be labeled "Q"
122-
if strings.Contains(dot, `label="Q"`) {
123-
// Good - has Q node
122+
if !strings.Contains(dot, `label="Q"`) {
123+
t.Error("ToDOT() should contain Q node")
124124
}
125125
}
126126

pkg/integrations/pypi/doc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@
4646
//
4747
// Package names are normalized following PEP 503.
4848
package pypi
49-

pkg/render/tower/styles/handdrawn/colors_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ func TestGreyForID(t *testing.T) {
1919
}
2020

2121
// Test that same ID produces same color (deterministic)
22-
if greyForID(id1) != greyForID(id1) {
22+
grey1a := greyForID(id1)
23+
grey1b := greyForID(id1)
24+
if grey1a != grey1b {
2325
t.Errorf("greyForID() should be deterministic")
2426
}
2527

0 commit comments

Comments
 (0)