X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2Ftest%2Fstringf.cpp;fp=ETL%2Ftrunk%2Ftest%2Fstringf.cpp;h=3a666a32a60ceee58702f318bd277586ab58e80a;hb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;hp=0000000000000000000000000000000000000000;hpb=7f4273493da74d7d5746a65551e20c7786d0f155;p=synfig.git diff --git a/ETL/trunk/test/stringf.cpp b/ETL/trunk/test/stringf.cpp new file mode 100644 index 0000000..3a666a3 --- /dev/null +++ b/ETL/trunk/test/stringf.cpp @@ -0,0 +1,133 @@ +/*! ======================================================================== +** Extended Template and Library Test Suite +** stringf Procedure Test +** $Id: stringf.cpp,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $ +** +** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. +** +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. +** +** === N O T E S =========================================================== +** +** ========================================================================= */ + +/* === H E A D E R S ======================================================= */ + +#include +#include +#include + +/* === M A C R O S ========================================================= */ + +using namespace etl; +using namespace std; + +/* === C L A S S E S ======================================================= */ + + +/* === P R O C E D U R E S ================================================= */ + +int basic_test(void) +{ + int ret=0; + char mystring[80]="My formatted string!"; + string myotherstring="my other string!"; + + cout<>%s<<.",mystring)< "< "< "< "< "< "< "< "< "<