(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestIsBalancedHandlesOrdering(t *testing.T) { |
| 63 | input := "([)]" |
| 64 | |
| 65 | got := IsBalanced(input) |
| 66 | want := false |
| 67 | |
| 68 | if got != want { |
| 69 | t.Errorf("\nInput: %s\nGot: %v\nWant: %v\n", input, got, want) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func BenchmarkIsBalanced(b *testing.B) { |
| 74 | input := "{[()]}" |
nothing calls this directly
no test coverage detected