Assert.assertTrue(interpreter.tick(0) == 0);
}
@Test
public void testX() {
Interpreter interpreter = new Interpreter(null);
DebugNode debugNode = new DebugNode(10);
interpreter.start(debugNode);
Assert.assertTrue(interpreter.tick(0) > 0);
DebugNode.DebugTask first = debugNode.lastTask;
Assert.assertTrue(first.updateCalled);
Assert.assertTrue(first.initializeCalled);
Assert.assertTrue(!first.terminateCalled);
first.reset();
for (int i = 0; i < 9; i++) {
Assert.assertTrue(interpreter.tick(0) > 0);
DebugNode.DebugTask current = debugNode.lastTask;
Assert.assertSame(first, current);
Assert.assertTrue(current.updateCalled);
Assert.assertTrue(!current.initializeCalled);
Assert.assertTrue(!current.terminateCalled);
current.reset();
}
Assert.assertTrue(interpreter.tick(0) > 0);
DebugNode.DebugTask last = debugNode.lastTask;
Assert.assertTrue(last.updateCalled);
Assert.assertTrue(!last.initializeCalled);
Assert.assertTrue(last.terminateCalled);
Assert.assertSame(first, last);
Assert.assertTrue(interpreter.tick(0) == 0);
}