(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestIsBalancedHandlesEmpty(t *testing.T) { |
| 30 | input := "" |
| 31 | |
| 32 | got := IsBalanced(input) |
| 33 | want := true |
| 34 | |
| 35 | if got != want { |
| 36 | t.Errorf("\nInput: %s\nGot: %v\nWant: %v\n", input, got, want) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func TestIsBalancedHandlesOneChar(t *testing.T) { |
| 41 | input := "{" |
nothing calls this directly
no test coverage detected