comparison python/testhexfile.py @ 251:6ed3d3a82a63

Added another c3 example. First import attempt
author Windel Bouwman
date Mon, 29 Jul 2013 20:23:13 +0200
parents 66912720d712
children e64bae57cda8
comparison
equal deleted inserted replaced
250:f5fba5b554d7 251:6ed3d3a82a63
28 hf.addRegion(0xFFFE, bytes.fromhex('aabbcc')) 28 hf.addRegion(0xFFFE, bytes.fromhex('aabbcc'))
29 self.saveload(hf) 29 self.saveload(hf)
30 30
31 def testSave4(self): 31 def testSave4(self):
32 hf = HexFile() 32 hf = HexFile()
33 hf.addRegion(0xF000, bytes.fromhex('ab')*0x20000) 33 hf.addRegion(0xF000, bytes.fromhex('ab')*0x10000)
34 self.saveload(hf) 34 self.saveload(hf)
35 35
36 def testSave5(self): 36 def testSave5(self):
37 hf = HexFile() 37 hf = HexFile()
38 hf.addRegion(0xF003, bytes.fromhex('ab')*0x20000) 38 hf.addRegion(0xF003, bytes.fromhex('ab')*0x10000)
39 self.saveload(hf) 39 self.saveload(hf)
40 40
41 def testMerge(self): 41 def testMerge(self):
42 hf = HexFile() 42 hf = HexFile()
43 hf.addRegion(0x10, bytes.fromhex('abcdab')) 43 hf.addRegion(0x10, bytes.fromhex('abcdab'))