-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b59ac70
commit 29cf504
Showing
5 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
from mercury_engine_data_structures.formats.rom3ds import Rom3DS | ||
|
||
|
||
@pytest.mark.parametrize("rom_ending", [".cxi", ".cia", ".3ds"]) | ||
def test_compare_pkg_sr(samus_returns_roms_path, rom_ending): | ||
file_path = samus_returns_roms_path.joinpath("MSR" + rom_ending).as_posix() | ||
with open(file_path, "rb") as file_stream: | ||
rom = Rom3DS(file_path, file_stream) | ||
# deactivated to not let other users tests fail when they use a NTSC version | ||
# assert rom.get_title_id() == "00040000001BFB00" | ||
# assert rom.is_pal() | ||
assert rom.get_file_binary("gui/scripts/loadingscreen.lc")[:6] == b"\x1bLuaQ\x00" | ||
assert rom.decompress_code()[:6] == b"\x07\x00\x00\xeb\x92#" | ||
assert rom.exheader()[:8] == b"MATADORA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters