Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f40afec4 authored by Liz Kammer's avatar Liz Kammer
Browse files

Add test case for too many splits

Test: go soong tests
Change-Id: Iabce699e24c5ed71c2400e364e5395c042814824
parent 6bd0a19b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)