Unit Tests - Complete Att unit tests

- Covers parsing, composition.
This commit is contained in:
Paul Beckingham 2009-05-31 00:10:35 -04:00
parent ed685a55ce
commit 766c2d3620
3 changed files with 61 additions and 36 deletions

View file

@ -212,7 +212,7 @@ bool Nibbler::skipAllOneOf (const std::string& chars)
bool Nibbler::getQuoted (char c, std::string& result)
{
std::string::size_type start = mCursor;
if (start < mInput.length () - 1 && mInput[start] == c)
if (start < mInput.length () && mInput[start] == c)
{
++start;
if (start < mInput.length ())