mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added failing quoted string test
This commit is contained in:
parent
daba36860b
commit
e99dec6e1b
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (1087);
|
||||
UnitTest t (1088);
|
||||
|
||||
std::vector <std::pair <std::string, Lexer::Type>> tokens;
|
||||
std::string token;
|
||||
|
@ -218,6 +218,9 @@ int main (int argc, char** argv)
|
|||
t.is (word, "'one two'", " word '" + word + "'");
|
||||
t.is ((int)cursor, 9, " cursor");
|
||||
|
||||
cursor = 0;
|
||||
t.ok (Lexer::readWord ("'one", "'\"", cursor, word), "readWord ''one' --> false");
|
||||
|
||||
// static bool readWord (const std::string&, std::string::size_type&, std::string&);
|
||||
cursor = 0;
|
||||
t.ok (Lexer::readWord ("input", cursor, word), "readWord 'input' --> true");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue