comparison packages/language/cxx/ustl/current/tests/bvt09.cpp @ 3152:4885e0722884

* include/*: * src/*: * tests/*: * HISTORY: * LICENSE: Updated to uSTL 1.6 sources.
author sergeig
date Wed, 04 Apr 2012 18:51:57 +0000
parents 88af52c64ce4
children
comparison
equal deleted inserted replaced
3151:e1cec8d66444 3152:4885e0722884
1 // This file is part of the uSTL library, an STL implementation. 1 // This file is part of the uSTL library, an STL implementation.
2 // 2 //
3 // Copyright (c) 2005-2009 by Mike Sharov <msharov@users.sourceforge.net> 3 // Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
4 // This file is free software, distributed under the MIT License. 4 // This file is free software, distributed under the MIT License.
5 5
6 #include "stdtest.h" 6 #include "stdtest.h"
7 7
8 void TestStringStreams (void) 8 void TestStringStreams (void)
70 cout.format ("u_int: %d\n", ui); 70 cout.format ("u_int: %d\n", ui);
71 cout.format ("long: %ld\n", li); 71 cout.format ("long: %ld\n", li);
72 cout.format ("u_long: %ld\n", uli); 72 cout.format ("u_long: %ld\n", uli);
73 cout.format ("float: %.2f\n", f); 73 cout.format ("float: %.2f\n", f);
74 cout.format ("double: %.2f\n", d); 74 cout.format ("double: %.2f\n", d);
75 cout.format ("short: %hd\n", static_cast<int>(si)); 75 cout.format ("short: %d\n", static_cast<int>(si));
76 cout.format ("u_short: %hd\n", static_cast<int>(usi)); 76 cout.format ("u_short: %d\n", static_cast<int>(usi));
77 cout << endl; 77 cout << endl;
78 78
79 cout << "Dump:" << endl; 79 cout << "Dump:" << endl;
80 cout << os.str().cdata() << endl; 80 cout << os.str().cdata() << endl;
81 cout << endl; 81 cout << endl;