Exemplo n.º 1
0
  @Test
  public void testWhileInSeqToString() {
    Program whileInSeqProgram = new Program(whileinseq, robot);

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

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

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

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

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

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

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

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