public class LinkedListStringTester{
    public static void main (String[] args){

	//
	// setup
	//
	LinkedListString lls = new SmithString();
	lls.append('c');
	lls.append('a');
	lls.append('t');
	
	LinkedListString lls2 = new SmithString();
	lls2.append('d');
	lls2.append('o');
	lls2.append('g');
	
	lls.append(lls2);

	//
	// test 1
	//
	int result = lls.find('o');
	if (result != 4){
	    System.out.println("error, index of o should be 4");
	}
	else{
	    System.out.println("ok");
	}

	//
	// test 2
	//
	result = lls.indexOf(lls2);
	if (result != 3){
	    System.out.println("error, index of 'dog' should be 3");
	}
	else{
	    System.out.println("ok");
	}
	
	//
	// test 3
	//
	result = lls2.length();
	if (result != 3){
	    System.out.println("error, length of 'dog' should be 3");
	}
	else{
	    System.out.println("ok");
	}

    }//end main
}

