@Test public void testRun() throws Exception { Pop pop = new Pop(0, "abc"); pop.run(scope); BWVariable variable = scope.getVariable("abc"); assertEquals(312, variable.getIntValue()); }
@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()); }