Merge "Add test case for too many splits"

This commit is contained in:
Liz Kammer
2021-04-15 13:40:42 +00:00
committed by Gerrit Code Review

View File

@@ -76,6 +76,12 @@ func TestGetCcInfoParseResults(t *testing.T) {
expectedOutput: CcInfo{},
expectedErrorMessage: fmt.Sprintf("Expected %d items, got %q", 3, []string{"", ""}),
},
{
description: "too many result splits",
input: "|||",
expectedOutput: CcInfo{},
expectedErrorMessage: fmt.Sprintf("Expected %d items, got %q", 3, []string{"", "", "", ""}),
},
}
for _, tc := range testCases {
actualOutput, err := GetCcInfo.ParseResult(tc.input)