Skip to content

Commit 94133e7

Browse files
committed
minor change to TestGetCoreFlags
1 parent b80743a commit 94133e7

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

parser/sectionParser_test.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,10 @@ func TestGetCoreFlags(t *testing.T) {
137137
output := getCoreFlags(testCase.RowInfo)
138138
expected := testCase.Section.Core_flags
139139

140-
if len(output) != len(expected) {
141-
t.Errorf("expected %d meetings got %d", len(expected), len(output))
142-
return
143-
}
144-
145-
for i, flag := range output {
146-
expectedFlag := expected[i]
147-
148-
diff := cmp.Diff(expectedFlag, flag)
140+
diff := cmp.Diff(expected, output)
149141

150-
if diff != "" {
151-
t.Errorf("Failed (-expected +got)\n %s", diff)
152-
}
142+
if diff != "" {
143+
t.Errorf("Failed (-expected +got)\n %s", diff)
153144
}
154145
})
155146
}

0 commit comments

Comments
 (0)