Skip to content

Commit 9027186

Browse files
mrcfpsrpottsoh
authored andcommitted
bracket-push: Add test case "partially paired brackets" (#1219)
Guard against solutions returning `true` once brackets are matched, which will pass all previous tests but the added one
1 parent 0c67742 commit 9027186

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exercises/bracket-push/canonical-data.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "bracket-push",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"cases": [
55
{
66
"description": "paired square brackets",
@@ -50,6 +50,14 @@
5050
},
5151
"expected": true
5252
},
53+
{
54+
"description": "partially paired brackets",
55+
"property": "isPaired",
56+
"input": {
57+
"value": "{[])"
58+
},
59+
"expected": false
60+
},
5361
{
5462
"description": "simple nested brackets",
5563
"property": "isPaired",

0 commit comments

Comments
 (0)