Document the tested Nextion Editor version (1.68.2.3035)

TESTED_EDITOR_VERSION constant, README compatibility section with the
check to run after an Editor update, CLAUDE.md rules for other builds,
canary test on the fixture's version marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-15 15:20:27 +01:00
1 parent 69e22cfb06
commit 82ab4177d1
6 files changed
+35 -3

No files matched your search

+9
View File
@@ -33,6 +33,15 @@ class ChecksumAlgorithms(unittest.TestCase):
self.assertEqual(checksum.page_crc(bytes(page)), bitwise_word_crc(bytes(page[4:]) + tail))
class EditorVersion(unittest.TestCase):
def test_fixture_written_by_tested_editor(self):
"""Canary: the fixture's main.HMI carries the marker Editor 1.68.2 writes (offset 9 = 0x44).
If a re-saved fixture from another Editor build changes it, update docs + TESTED_EDITOR_VERSION."""
import nxhmi
self.assertEqual(nxhmi.TESTED_EDITOR_VERSION, "1.68.2.3035")
self.assertEqual(HMIFile.load(FIXTURE).read("main.HMI")[9], 0x44)
class ChecksumsOfEditorOutput(unittest.TestCase):
"""Every checksum in a file written by Nextion Editor 1.68 must verify."""