stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r647220 - /stdcxx/trunk/tests/self/0.fnmatch.cpp
Date Fri, 11 Apr 2008 16:44:53 GMT
Author: faridz
Date: Fri Apr 11 09:44:52 2008
New Revision: 647220

URL: http://svn.apache.org/viewvc?rev=647220&view=rev
Log:
2008-04-11 Farid Zaripov <farid_zaripov@epam.com>

	* tests/self/0.fnmatch.cpp (main): Exercised some incomplete patterns.

Modified:
    stdcxx/trunk/tests/self/0.fnmatch.cpp

Modified: stdcxx/trunk/tests/self/0.fnmatch.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/self/0.fnmatch.cpp?rev=647220&r1=647219&r2=647220&view=diff
==============================================================================
--- stdcxx/trunk/tests/self/0.fnmatch.cpp (original)
+++ stdcxx/trunk/tests/self/0.fnmatch.cpp Fri Apr 11 09:44:52 2008
@@ -438,6 +438,16 @@
     TEST (1, "*-aix[1-9].[0-9]-xlc7.0.0.[0-9]", "ppc-aix5.2-xlc6.0");
     TEST (0, "*-aix[1-9].[0-9]-xlc7.0.0.[0-9]", "ppc-aix4.3-xlc7.0.0.0");
 
+    // exercise incomplete patterns
+    TEST (1, "\\", "");
+    TEST (1, "\\", "a");
+    TEST (1, "\\", "\\");
+    TEST (1, "[",  "");
+    TEST (1, "[",  "a");
+    TEST (1, "[",  "[");
+    TEST (1, "[a", "");
+    TEST (1, "[a", "[a");
+
     // return 0 on success, 1 on failure
     return !(0 == nerrors);
 }



Mime
View raw message