MCPcopy Create free account
hub / github.com/EndlessCheng/codeforces-go / TestRunLeetCodeClass

Function TestRunLeetCodeClass

leetcode/testutil/leetcode_test.go:113–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

111}
112
113func TestRunLeetCodeClass(t *testing.T) {
114 sampleIns := []string{`
115["foo","f0","f1","f2"]
116[[],[10,100],[1,2],[11,22]]
117`, `
118["foo","f1","f2"]
119[[],[-1,-2],[-11,-22]]
120`}
121 sampleOuts := []string{`[null,null,3,[11,22]]`, `[null,-3,[-11,-22]]`}
122 if err := RunLeetCodeClass(t, constructor, sampleIns, sampleOuts); err != nil {
123 t.Error(err)
124 }
125}

Callers

nothing calls this directly

Calls 1

RunLeetCodeClassFunction · 0.85

Tested by

no test coverage detected