stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r559085 - in /incubator/stdcxx/trunk/tests/strings: 21.string.replace.stdcxx-175.cpp 21.string.stdcxx-466.cpp
Date Tue, 24 Jul 2007 15:35:39 GMT
Author: faridz
Date: Tue Jul 24 08:35:38 2007
New Revision: 559085

URL: http://svn.apache.org/viewvc?view=rev&rev=559085
Log:
2007-07-24 Farid Zaripov <Farid_Zaripov@epam.com>

	* 21.string.stdcxx-466.cpp: Corrected file name in file header.
	* 21.string.replace.stdcxx-175.cpp: New regression test for STDCXX-175.

Added:
    incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp   (with props)
Modified:
    incubator/stdcxx/trunk/tests/strings/21.string.stdcxx-466.cpp

Added: incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp?view=auto&rev=559085
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp (added)
+++ incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp Tue Jul 24 08:35:38
2007
@@ -0,0 +1,45 @@
+/************************************************************************
+*
+* 21.string.replace.stdcxx-175.cpp - test case from STDCXX-175 issue
+*
+* $Id$
+*
+***************************************************************************
+*
+* Licensed to the Apache Software  Foundation (ASF) under one or more
+* contributor  license agreements.  See  the NOTICE  file distributed
+* with  this  work  for  additional information  regarding  copyright
+* ownership.   The ASF  licenses this  file to  you under  the Apache
+* License, Version  2.0 (the  "License"); you may  not use  this file
+* except in  compliance with the License.   You may obtain  a copy of
+* the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the  License is distributed on an  "AS IS" BASIS,
+* WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+* implied.   See  the License  for  the  specific language  governing
+* permissions and limitations under the License.
+*
+**************************************************************************/
+
+#include <cassert>
+#include <string>
+#include <stdexcept>
+
+int main (int argc, char* argv [])
+{
+    std::string s (4095, 'a');
+
+    try 
+    {
+        s.replace (0, 1, "a", s.max_size () + 1);
+        assert (!"Expect length error, got nothing");
+    }
+    catch (std::length_error& e)
+    {
+    }
+
+    return 0;
+}

Propchange: incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stdcxx/trunk/tests/strings/21.string.replace.stdcxx-175.cpp
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: incubator/stdcxx/trunk/tests/strings/21.string.stdcxx-466.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.stdcxx-466.cpp?view=diff&rev=559085&r1=559084&r2=559085
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.stdcxx-466.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.stdcxx-466.cpp Tue Jul 24 08:35:38 2007
@@ -1,6 +1,6 @@
 /************************************************************************
  *
- * 21.string.rfind.stdcxx-466.cpp - test case from STDCXX-466 issue
+ * 21.string.stdcxx-466.cpp - test case from STDCXX-466 issue
  *
  * $Id$
  *



Mime
View raw message