]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/test/stringtest.cc
release: 0.0.47
[lilypond.git] / flower / test / stringtest.cc
index 5b4ace1b2f515c7df89f5733348f0c8f27966078..cc652a5405579b063b1f5c971411ad489cb72058 100644 (file)
@@ -1,4 +1,3 @@
-#ifdef STRING_TEST
 /*
   stupid test program to verify stringlib
   stringtest.cc
@@ -72,12 +71,12 @@ kutenpeer()
     }
     str = "blonde haren";
     cout << str<<endl;
-    cout << "mid(2,6)="<<str.mid_str(2,3)<<endl;
-    cout << "nomid(2,6)="<<str.nomid_str(2,3)<<endl;
+    cout << "mid(2,6)="<<str.mid_str(2,6)<<endl;
+    cout << "nomid(2,6)="<<str.nomid_str(2,6)<<endl;
 }
 
 bool
-test_empty_bo( String str )
+test_empty_b( String str )
 {
     cout << "`" << str << "' is ";
 
@@ -103,16 +102,17 @@ main()
     str += " daar";
     cout << str << endl;
 
-    str = String( "Hallo" ) + " daaR" + '!';
+//    str = String( "Hallo" ) + " daaR" + '!'; // no go on doze-s gcc2.7.2?
+    str = String( "Hallo" ) + " daaR" + "!";
     cout << str << endl;
 
     cout << "up: " << str.upper_str() << " down: " << str.lower_str()<<endl;
     
-    if ( test_empty_bo( str ) )
+    if ( test_empty_b( str ) )
        return 1;
     
     String fn = "";
-    if ( !test_empty_bo( fn ) )
+    if ( !test_empty_b( fn ) )
        return 1;
     
     fn = "";
@@ -126,5 +126,4 @@ main()
     return 0;
 }
 
-#endif STRING_TEST