Skip to content

Commit

Permalink
Add some more flash tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Dec 30, 2023
1 parent 2e98a54 commit d8a0ed2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tivars.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,15 @@ def test_app(self):
def test_os(self):
test_os = TIFlashHeader.open("tests/data/var/TI-84_Plus_CE-Python-OS-5.8.0.0022.8eu")

self.assertEqual(test_os.magic, "**TIFL**")
self.assertEqual(test_os.binary_flag, 0x00)
self.assertEqual(test_os.object_type, 0x00)
self.assertEqual(test_os.product_id, 0x13)
self.assertEqual(type(test_os), TIOperatingSystem)

def test_license(self):
test_license = TILicense.open("tests/data/var/ti89_2.01_10-13-1999.89u")

self.assertEqual(test_license.date, (12, 10, 1999))
self.assertEqual(test_license.devices, [(0x74, 0x3E), (0x73, 0x3E), (0x98, 0x3E), (0x88, 0x3E)])
self.assertEqual(test_license.license.split("\r\n")[2], "Texas Instruments License Agreement")

0 comments on commit d8a0ed2

Please sign in to comment.