class TestPartie4{

    // utilitaire
    static void afficher(String[] tab){
	for (int i = 0; i < tab.length; i++)
	    System.out.print(tab[i] + " ");
	System.out.println();
    }

    public static void main(String[] args){
	System.out.println(Lyndon.estLyndon("0001"));  // vrai
	System.out.println(Lyndon.estLyndon("0123"));  // vrai
	System.out.println(Lyndon.estLyndon("0101"));  // faux
	System.out.println(Lyndon.estLyndon("2301"));  // faux

	afficher(Lyndon.tousLesLyndon(new char[] {'0', '1', '2'}, 3));
	//  vous devez voir (a l'ordre pres)
	//  001 011 021 002 012 112 022 122

	System.out.println(Lyndon.concatenation(new char[] {'0', '1', '2'}, 3));
	//  vous devez voir 
	//  000100201101202102211121222
    }
}

