Brackets, braces, parentheses, and other such creatures(davesquared.blogspot.com)
submitted by
nrstott(345) 3 years, 9 months ago
An interesting story about a common task in text-manipulation done with TDD.
The problem is stated as such:
This aim of this challenge was to determine whether any given string has a legal bracket structure. Basically, make sure all the '(', '[', '{', and '<' have matching ')', ']', '}' and '>'. We also need to take nesting into account, so that "({)}" is incorrect, and "({}<{}>)" will pass.
|category: Unit Testing
|Views: 12
tags:
Testing another
Everyones tags:
Your Tags: