import junit.framework.TestCase;

/**
 * A class for JUnit testing.
 * all the methods that start with "test" will be called by DrJava 
 * when pressing the Test button.
 * 
 * YOU CAN ADD YOUR OWN TESTS!
 */
public class A4Q1test extends TestCase {
  
   /** NEW
   * Test the value 0
   */
  public void test0() {
    int bin=A4Q1.binary(0);
    assertEquals(bin, 0);
  }
  
   /** NEW
   * Test the value 1
   */
  public void test1() {
    int bin=A4Q1.binary(1);
    assertEquals(bin, 1);
  }
 
   /** NEW
   * Test the value 13
   */
  public void test13() {
    int bin=A4Q1.binary(13);
    assertEquals(bin, 1101);
  }
  
  /** NEW
   * Test the value 24
   */
  public void test24() {
    int bin=A4Q1.binary(24);
    assertEquals(bin, 11000);
  }
  /**
   * Test the value 29
   */
  public void test29() {
    int bin=A4Q1.binary(29);
    assertEquals(bin, 11101);
  }
  
  /**
   * Test the value 999
   */
  public void test999() {
    int bin=A4Q1.binary(999);
    assertEquals(bin, 1111100111);
  }
  
 
  
}
