package junit_example;
import org.junit.*;


/**
  Class for testing return values.
  The java.lang.CharSequence class method charAt() is tested.
*/
public class TestReturns {

  static private CharSequence abc = "abc";

  @Test
  public void charAt() {
    //  "The first char value is at index 0."
    Assert.assertEquals('a', abc.charAt(0));
    //  "the char value at the specified index of this string."
    Assert.assertEquals('b', abc.charAt(1));
    Assert.assertEquals('c', abc.charAt(2));
  }

}
