/*
* KkkgJoe.java
* aszimmetrikus összehasonlító program a prototípushoz (:SorOlvasó-val)
* by pts@fazekas.hu at Sun Apr 22 20:18:33 CEST 2001
* további doksi: a README-ben és e file legkülső class-ának fejkommentjében
*
* Kincskereső Kisgömböc (C) Early May 2001 by eNTitánok (Rév Szilvia,
* Szabó Péter <pts@inf.bme.hu>, Szurdi Miklós, Weizengruber Attila).
*
* This program 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 program 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package eNTitanok.kkkg;
import eNTitanok.util.Hason;
import java.io.FileInputStream;
import java.io.IOException;
/**
* Aszimmetrikus összehasonlító program a prototípushoz. :SorOlvasó-val.
*/
public class KkkgJoe {
public static void main(String argv[]) {
System.err.println("Kincskereso Kisgomboc Prototipus, 2. verzio\n(C) Spring 2001 by eNTitanok. http://www.inf.bme.hu/~pts/entitanok/\nTHIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!\n");
if (argv.length==0) {
System.err.println("Tesztfile-ok neveit varom parameterkent.");
System.exit(2);
}
boolean nem=false;
for (int i=0;i<argv.length;i++) {
try {
boolean b=Hason.hasonlit_mester(argv[i], "ellenorzo ", "kell ");
// ^^^ bugfix by pts@fazekas.hu at Sun May 13 14:04:15 CEST 2001
if (b==false) {
nem=true;
System.out.println(argv[i]+": teszt meghiusult");
} else System.out.println(argv[i]+": teszt sikerult");
} catch (IOException e) {
System.out.println(argv[i]+": I/O hiba: "+e);
nem=true;
}
}
if (nem) System.err.println("Nem minden teszt sikerult.");
else System.err.println("Minden teszt sikerult.");
System.exit(nem?1:0);
}
} /// class KkkgJoe