We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80743a commit 94133e7Copy full SHA for 94133e7
parser/sectionParser_test.go
@@ -137,19 +137,10 @@ func TestGetCoreFlags(t *testing.T) {
137
output := getCoreFlags(testCase.RowInfo)
138
expected := testCase.Section.Core_flags
139
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)
+ diff := cmp.Diff(expected, output)
149
150
- if diff != "" {
151
- t.Errorf("Failed (-expected +got)\n %s", diff)
152
+ if diff != "" {
+ t.Errorf("Failed (-expected +got)\n %s", diff)
153
}
154
})
155
0 commit comments