Balanced brackets: Difference between revisions

Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag
m (→‎{{header|RPL}}: better ASSERT subroutine, using a list)
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag)
Line 2,428:
for (String test : tests)
{
console.printlnprint($"{test}{' ' * (longest-test.size)} {balanced(test) ? "OK" : "NOT OK"}");
}
}
Line 2,434:
</syntaxhighlight>
 
{{out}}
Resulting output:
<pre>
<syntaxhighlight>
[] OK
[][] OK
Line 2,444:
]][[]][[[[][]] NOT OK
[[]]]][]][[][[[] NOT OK
</pre>
</syntaxhighlight>
 
=={{header|Elena}}==
162

edits