MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / TestParenthesis

Function TestParenthesis

strings/parenthesis/parenthesis_test.go:44–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestParenthesis(t *testing.T) {
45 for _, tc := range parenthesisTestCases {
46 t.Run(tc.name, func(t *testing.T) {
47 actual := Parenthesis(tc.text)
48 if actual != tc.expected {
49 t.Errorf("Expected %t value from test %s with input %s\n", tc.expected, tc.name, tc.text)
50 }
51 })
52 }
53}

Callers

nothing calls this directly

Calls 1

ParenthesisFunction · 0.85

Tested by

no test coverage detected