]> git.saurik.com Git - wxWidgets.git/commitdiff
extracted wxStringTokenizer tests in their own file and rewrote them to be table...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Dec 2005 16:34:09 +0000 (16:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Dec 2005 16:34:09 +0000 (16:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/tokenizer.cpp

index 0569ae91503359ddf2dda9c83c435f4315a810b2..7d0ebd692a982125cf89edaedebf993d0440ad56 100644 (file)
@@ -78,6 +78,7 @@ gs_testData[] =
     { _T("Hello, world"),       _T(","),              wxTOKEN_DEFAULT      , 2 },
     { _T("Hello, world!"),      _T(",!"),             wxTOKEN_DEFAULT      , 2 },
     { _T("Hello,, world!"),     _T(",!"),             wxTOKEN_DEFAULT      , 3 },
     { _T("Hello, world"),       _T(","),              wxTOKEN_DEFAULT      , 2 },
     { _T("Hello, world!"),      _T(",!"),             wxTOKEN_DEFAULT      , 2 },
     { _T("Hello,, world!"),     _T(",!"),             wxTOKEN_DEFAULT      , 3 },
+    { _T("Hello,, world!"),     _T(",!"),             wxTOKEN_STRTOK       , 2 },
     { _T("Hello, world!"),      _T(",!"),             wxTOKEN_RET_EMPTY_ALL, 3 },
     { _T("username:password:uid:gid:gecos:home:shell"),
                                 _T(":"),              wxTOKEN_DEFAULT      , 7 },
     { _T("Hello, world!"),      _T(",!"),             wxTOKEN_RET_EMPTY_ALL, 3 },
     { _T("username:password:uid:gid:gecos:home:shell"),
                                 _T(":"),              wxTOKEN_DEFAULT      , 7 },