Skip to content

Commit f81d5aa

Browse files
committed
Dot attributes are stored in a map, so we don't have deterministic order of the keys
1 parent ff55b12 commit f81d5aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

binarytree_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ func TestNodeAttributes(t *testing.T) {
730730
}
731731

732732
root.AddAttribute("color", "green")
733-
root.AddAttribute("fillcolor", "green")
734733

735-
wantAttrs := "color=green fillcolor=green"
736-
if root.GetDotAttributes() != wantAttrs {
734+
wantAttrs := "color=green"
735+
gotAttrs := root.GetDotAttributes()
736+
if gotAttrs != wantAttrs {
737737
t.Fatal("node attributes mismatch")
738738
}
739739
}

0 commit comments

Comments
 (0)