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

Function TestIsBalancedFalty

other/nested/nestedbrackets_test.go:18–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestIsBalancedFalty(t *testing.T) {
19 input := "{([()]}"
20
21 got := IsBalanced(input)
22 want := false
23
24 if got != want {
25 t.Errorf("\nInput: %s\nGot: %v\nWant: %v\n", input, got, want)
26 }
27}
28
29func TestIsBalancedHandlesEmpty(t *testing.T) {
30 input := ""

Callers

nothing calls this directly

Calls 1

IsBalancedFunction · 0.85

Tested by

no test coverage detected