aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/include_idempotency/test_include_idempotent.py
blob: e7b4fc84935f99c9e5afe8856bddb612af5140fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os.path
from test.utils import assemble_and_run_until_halted

def test_include_idempotent():
  machine1 = assemble_and_run_until_halted(
    os.path.join(os.path.dirname(__file__), "p1.atk16")
  )

  machine2 = assemble_and_run_until_halted(
    os.path.join(os.path.dirname(__file__), "p2.atk16")
  )

  for i in range(len(machine1.rom.memory)):
    assert machine1.rom.memory[i] == machine2.rom.memory[i]