(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestIsBalancedSimple(t *testing.T) { |
| 8 | input := "{[()]}" |
| 9 | |
| 10 | got := IsBalanced(input) |
| 11 | want := true |
| 12 | |
| 13 | if got != want { |
| 14 | t.Errorf("\nInput: %s\nGot: %v\nWant: %v\n", input, got, want) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func TestIsBalancedFalty(t *testing.T) { |
| 19 | input := "{([()]}" |
nothing calls this directly
no test coverage detected