From afa9c9786a3f9f85af2b0cef4ee8df8af1eebf85 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Sun, 12 Mar 2017 21:48:13 -0700 Subject: [PATCH] Fixed xex creation test --- test/test_segment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_segment.py b/test/test_segment.py index e619bc6..fc71289 100644 --- a/test/test_segment.py +++ b/test/test_segment.py @@ -30,11 +30,11 @@ class TestSegment1(object): bytes = get_xex(s, 0xbeef) assert tuple(bytes[0:2]) == (0xff, 0xff) # 2 bytes for the ffff - # 6 bytes for the last segment run address # 4 bytes per segment for start, end address + # An extra segment has been inserted for the run address! size = reduce(lambda a, b:a + 4 + len(b), s, 0) print size, len(bytes) - assert len(bytes) == 2 + 6 + size + assert len(bytes) == 2 + size def test_copy(self): for s in self.segments: