stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r632436 - /stdcxx/trunk/tests/strings/21.string.access.cpp
Date Fri, 29 Feb 2008 20:54:51 GMT
Author: vitek
Date: Fri Feb 29 12:54:50 2008
New Revision: 632436

URL: http://svn.apache.org/viewvc?rev=632436&view=rev
Log:

2008-02-29  Travis Vitek  <vitek@roguewave.com>

	* tests/strings/21.string.access.cpp (test_access): Revert previous
	change.


Modified:
    stdcxx/trunk/tests/strings/21.string.access.cpp

Modified: stdcxx/trunk/tests/strings/21.string.access.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/strings/21.string.access.cpp?rev=632436&r1=632435&r2=632436&view=diff
==============================================================================
--- stdcxx/trunk/tests/strings/21.string.access.cpp (original)
+++ stdcxx/trunk/tests/strings/21.string.access.cpp Fri Feb 29 12:54:50 2008
@@ -271,9 +271,7 @@
             char ()
         };
 
-        const size_t n = NPOS != tcase.nres ? 1 : 0;
-
-        const bool success = n == rw_match (exp_res, pres, n);
+        const bool success = 1 == rw_match (exp_res, pres, 1);
         rw_assert (success, 0, tcase.line,
                    "line %d. %{$FUNCALL} == %{#c}, got %{#c}",
                    __LINE__, tcase.nres, *pres);



Mime
View raw message