Exemplo n.º 1
0
 @Test
 public void testRun() throws Exception {
   Pop pop = new Pop(0, "abc");
   pop.run(scope);
   BWVariable variable = scope.getVariable("abc");
   assertEquals(312, variable.getIntValue());
 }
Exemplo n.º 2
0
 @Test
 public void testRun() throws Exception {
   BWObject expression = new BWInteger(123);
   Push push = new Push(0, expression);
   push.run(scope);
   assertEquals(expression, scope.getProgram().pop());
 }