
| Current Path : /var/www/web-klick.de/dsh/90_akt/uni/java/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/90_akt/uni/java/test_music.java |
import java.util.*;
import iftinf.music.*;
class test_music {
//************************************************
public static void main (String args[])
throws Exception {
String[] par = {"","",""};
if (args.length > 0) { par[0] = args[0]; }
if (args.length > 1) { par[1] = args[1]; }
if (args.length > 2) { par[2] = args[2]; }
if (par[0].equals("test1")) { test1(par); }
}
//************************************************
public static void test_ok (String[] par, long tt) {
float tt1 = (float)(System.currentTimeMillis() - tt)/1000;
System.out.println("Test " + par[0] + " ok. Parameters: "
+ par[1] + ", " + par[2]
+ ". " + tt1 + " sec.");
}
//************************************************
public static void test_failed (String[] par, long tt) {
float tt1 = (float)(System.currentTimeMillis() - tt) / 1000;
System.out.println("Test " + par[0] + " failed. Parameters: "
+ par[1] + ", " + par[2]
+ ". " + tt1 + " sec.");
}
//************************************************
public static void test1 (String[] par)
throws Exception {
Boolean g = Boolean.TRUE;
boolean f = g.booleanValue();
ton ton = new ton("^^c'''");
System.out.println(ton.text());
long tt = System.currentTimeMillis();
ton ton1 = new ton("^^c'''");
System.out.println(ton1.text());
test_ok(par,tt);
}
}