Exemple #1
0
def test_set():
    subject = Interpreter([3, 0, 99])
    subject.put(5)

    subject.run()

    assert subject[0] == 5
Exemple #2
0
def test_day_5_jump_test(program, param, result):
    subject = Interpreter(program)
    subject.put(param)
    subject.run()
    assert subject.get() == result