Author: sebor
Date: Mon Jan 23 11:48:13 2006
New Revision: 371639

URL: http://svn.apache.org/viewcvs?rev=371639&view=rev
Log:
2006-01-23  Martin Sebor  <[EMAIL PROTECTED]>

        * 0.printf.cpp (test_conditional): Exercised the ability to use the
        value of conditional expression in subsequent paramno specifiers.

Modified:
    incubator/stdcxx/trunk/tests/self/0.printf.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.printf.cpp
URL: 
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/self/0.printf.cpp?rev=371639&r1=371638&r2=371639&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.printf.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.printf.cpp Mon Jan 23 11:48:13 2006
@@ -1901,6 +1901,12 @@
     TEST (cond3, 1, 0, 1, "01679");
     TEST (cond3, 1, 1, 0, "0124579");
     TEST (cond3, 1, 1, 1, "0123579");
+
+    // exercise conditionals with positional parameters
+    TEST ("A%{?}B%{:}C%{;}%1$d",  0, 0, 0, "AC0");
+    TEST ("A%{?}B%{:}C%{;}%1$d",  1, 0, 0, "AB1");
+    TEST ("A%{?}B%{:}C%{;}%1$d",  2, 0, 0, "AB2");
+    TEST ("A%{?}B%{:}C%{;}%1$d", -1, 0, 0, "AB-1");
 }
 
 /***********************************************************************/


Reply via email to