예제 #1
0
  @Test
  public void testWhileInSeqToString() {
    Program whileInSeqProgram = new Program(whileinseq, robot);

    assertTrue(whileinseq.equals(whileInSeqProgram.toString()));
  }
예제 #2
0
  @Test
  public void testGumpToString() {
    Program gumpProgram = new Program(gump, robot);

    assertTrue(gump.equals(gumpProgram.toString()));
  }
예제 #3
0
  @Test
  public void testMoveToString() {
    Program moveProgram = new Program(move, robot);

    assertTrue(move.equals(moveProgram.toString()));
  }
예제 #4
0
  @Test
  public void testExampleInOneLineToString() {
    Program exampleInOneLineProgram = new Program(exampleinoneline, robot);

    assertTrue(example.equals(exampleInOneLineProgram.toString()));
  }
예제 #5
0
  @Test
  public void testExample4SpaceExtraNewLinesToString() {
    Program example4SpaceExtraNewLinesProgram = new Program(example4spaceextranewlines, robot);

    assertTrue(example.equals(example4SpaceExtraNewLinesProgram.toString()));
  }
예제 #6
0
  @Test
  public void testExampleToString() {
    Program exampleProgram = new Program(example, robot);

    assertTrue(example.equals(exampleProgram.toString()));
  }
예제 #7
0
  @Test
  public void testEmptyStringToString() {
    Program emptyStringProgram = new Program(emptyString, robot);

    assertTrue(emptyString.equals(emptyStringProgram.toString()));
  }
예제 #8
0
  @Test
  public void testCowboyToString() {
    Program cowboyProgram = new Program(cowboy, robot);

    assertTrue(cowboy.equals(cowboyProgram.toString()));
  }