import junit.framework.TestCase;

/** 
 * This is a test class for the MoreLoops class
 * from the February 11th lecture.
 */ 
public class MoreLoopsTester extends TestCase{
  
  
  /**
   * Testing principle: test case -- 0, 1 and many 
   * In this example we should test the empty string, 
   * single character, even/odd length strings.
   */ 
  public void testReverse() {
    
    assertEquals("", MoreLoops.reverse(""));
    assertEquals("a", MoreLoops.reverse("a"));
    assertEquals("ba", MoreLoops.reverse("ab"));
    assertEquals("cba", MoreLoops.reverse("abc"));
    assertEquals("rac ecar", MoreLoops.reverse("race car"));
    
  }
}
