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

Function TestIsPangram

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

Source from the content-addressed store, hash-verified

42}
43
44func TestIsPangram(t *testing.T) {
45 for _, test := range testCases {
46 t.Run(test.name, func(t *testing.T) {
47 func_result := IsPangram(test.input)
48 if test.expected != func_result {
49 t.Errorf("Expected answer '%t' for string '%s' but answer given was %t", test.expected, test.input, func_result)
50 }
51 })
52 }
53}

Callers

nothing calls this directly

Calls 1

IsPangramFunction · 0.85

Tested by

no test coverage detected