Package interfaces

Examples of interfaces.Digits


 
  @JExercise(
      tests="Digits(int,int)",
      description="The value starts at zero.")
  public void testDigit() {
    digit = new Digits(10,2);
    assertEquals(0, digit.toInt());
  }
View Full Code Here


    digit = new Digits(10,2);
    assertEquals(0, digit.toInt());
  }
 
  private void testIncrement(int base, boolean checkValue, boolean checkToString) {
    digit = new Digits(base, 2);
    int i = 0;
    String digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    while (i < base) {
      if (checkValue) {
        assertEquals(i % base,  digit.toInt());
View Full Code Here

TOP

Related Classes of interfaces.Digits

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.