mirror of
https://github.com/meerk40t/meerk40t.git
synced 2025-02-27 20:30:12 +00:00
Adding revised unittests
This commit is contained in:
parent
32fc7a964e
commit
3e32577fe0
2 changed files with 19 additions and 19 deletions
|
@ -25,7 +25,7 @@ Creator-Software: MeerK40t v0.0.0-testing
|
|||
|
||||
%0%0%0%0%
|
||||
IB055R091S1P
|
||||
IV1552121G002NLBS1ETaBDnUtTnD|aUtBpD|iUtTrD|mUtBrD|sUtTtD|uUtBrD|yUtTrD054UtBtD054UtTrD058UtBtD058UtTtD058UtBrD062UtTtD062UtBtD062UtTtD062UtBtD062UtTtD062UtBtD062UtTvD058UtBtD058UtTtD058UtBvD054UtTtD054UtBvD|yUtTvD|uUtBvD|qUtTvD|mUtBvD|iUtTxD|aUtB|aDnUtFNSE-
|
||||
IV1552121G002NLBS1EDnUxTtD|aUvBtD|iUtTtD|mUtBtD|sUrTtD|uUtBtD|yUtTtD054UrBtD054UtTtD058UrBtD058UrTtD058UtBtD062UrTtD062UrBtD062UrTtD062UrBtD062UrTtD062UrBtD062UrTvD058UrBtD058UrTtD058UrBvD054UrTtD054UrBvD|yUrTvD|uUrBvD|qUrTvD|mUrBvD|iUrTxD|aUrB|aDlFNSE-
|
||||
"""
|
||||
|
||||
egv_blank = """Document type : LHYMICRO-GL file
|
||||
|
|
|
@ -16,17 +16,17 @@ mos_rect = (
|
|||
|
||||
# Implementation was fixed, so a new image is due
|
||||
mos_image=(
|
||||
b'\x02\x01\x00\x00\x007\x00[\x00\x8a\x00\x00\x00\x00\x8a\x00\x00\x00\x00\x82\xff\xff\xa2\r\x00\x82!\x00\x88\xfe\xff\x82\x13\x00\xa2\xf9\xff\x82\xe5\xff'
|
||||
b'\x88\xfc\xff\x82\xf5\xff\xa2\x17\x00\x82+\x00\x88\xfa\xff\x82\x19\x00\xa2\xf3\xff\x82\xdf\xff\x88\xf8\xff\x82\xf1\xff\xa2\x1d\x00\x821\x00\x88\xf6\xff\x82'
|
||||
b'\x1d\x00\xa2\xef\xff\x82\xdb\xff\x88\xf4\xff\x82\xed\xff\xa2\x1f\x00\x823\x00\x88\xf2\xff\x82!\x00\xa2\xeb\xff\x82\xd7\xff\x88\xf0\xff\x82\xeb\xff\xa2!'
|
||||
b'\x00\x825\x00\x88\xee\xff\x82#\x00\xa2\xe9\xff\x82\xd5\xff\x88\xec\xff\x82\xe9\xff\xa2#\x00\x827\x00\x88\xea\xff\x82#\x00\xa2\xe9\xff\x82\xd5\xff'
|
||||
b'\x88\xe8\xff\x82\xe7\xff\xa2%\x00\x829\x00\x88\xe6\xff\x82%\x00\xa2\xe7\xff\x82\xd3\xff\x88\xe4\xff\x82\xe7\xff\xa2%\x00\x829\x00\x88\xe2\xff\x82'
|
||||
b'%\x00\xa2\xe7\xff\x82\xd3\xff\x88\xe0\xff\x82\xe7\xff\xa2%\x00\x829\x00\x88\xde\xff\x82%\x00\xa2\xe7\xff\x82\xd3\xff\x88\xdc\xff\x82\xe7\xff\xa2%'
|
||||
b'\x00\x829\x00\x88\xda\xff\x82#\x00\xa2\xe9\xff\x82\xd5\xff\x88\xd8\xff\x82\xe9\xff\xa2#\x00\x827\x00\x88\xd6\xff\x82#\x00\xa2\xe9\xff\x82\xd5\xff'
|
||||
b'\x88\xd4\xff\x82\xeb\xff\xa2!\x00\x825\x00\x88\xd2\xff\x82!\x00\xa2\xeb\xff\x82\xd7\xff\x88\xd0\xff\x82\xed\xff\xa2\x1f\x00\x823\x00\x88\xce\xff\x82'
|
||||
b'\x1d\x00\xa2\xef\xff\x82\xdb\xff\x88\xcc\xff\x82\xf1\xff\xa2\x1b\x00\x82/\x00\x88\xca\xff\x82\x19\x00\xa2\xf3\xff\x82\xdf\xff\x88\xc8\xff\x82\xf5\xff\xa2\x17'
|
||||
b"\x00\x82+\x00\x88\xc6\xff\x82\x13\x00\xa2\xf9\xff\x82\xe5\xff\x88\xc4\xff\x82\xff\xff\xa2\r\x00\x82!\x00\x80\x80\x80\x80\x80\x80\x80\n''\x00\x00"
|
||||
b'\x00\x00\x00\x00\x00\x8a\x00\x00\x00\x00\x80\x80\x80\x80\x80\x80\x80'
|
||||
b'\x02\x01\x00\x00\x007\x00[\x00\x8a\x00\x00\x00\x00\x8a\x00\x00\x00\x00\xa2\x0e\x00\x82&\x00\x88\xfe\xff\x82\x12\x00\xa2\xf8\xff\x82\xe2\xff\x88\xfc\xff'
|
||||
b'\x82\xf6\xff\xa2\x18\x00\x82,\x00\x88\xfa\xff\x82\x18\x00\xa2\xf2\xff\x82\xde\xff\x88\xf8\xff\x82\xf2\xff\xa2\x1e\x00\x820\x00\x88\xf6\xff\x82\x1c\x00\xa2'
|
||||
b'\xee\xff\x82\xda\xff\x88\xf4\xff\x82\xee\xff\xa2 \x00\x824\x00\x88\xf2\xff\x82 \x00\xa2\xea\xff\x82\xd8\xff\x88\xf0\xff\x82\xec\xff\xa2"\x00\x826'
|
||||
b'\x00\x88\xee\xff\x82"\x00\xa2\xe8\xff\x82\xd6\xff\x88\xec\xff\x82\xea\xff\xa2$\x00\x826\x00\x88\xea\xff\x82"\x00\xa2\xe8\xff\x82\xd4\xff\x88\xe8\xff'
|
||||
b'\x82\xe8\xff\xa2&\x00\x828\x00\x88\xe6\xff\x82$\x00\xa2\xe6\xff\x82\xd4\xff\x88\xe4\xff\x82\xe8\xff\xa2&\x00\x828\x00\x88\xe2\xff\x82$\x00\xa2'
|
||||
b'\xe6\xff\x82\xd4\xff\x88\xe0\xff\x82\xe8\xff\xa2&\x00\x828\x00\x88\xde\xff\x82$\x00\xa2\xe6\xff\x82\xd4\xff\x88\xdc\xff\x82\xe8\xff\xa2&\x00\x828'
|
||||
b'\x00\x88\xda\xff\x82"\x00\xa2\xe8\xff\x82\xd6\xff\x88\xd8\xff\x82\xea\xff\xa2$\x00\x826\x00\x88\xd6\xff\x82"\x00\xa2\xe8\xff\x82\xd6\xff\x88\xd4\xff'
|
||||
b'\x82\xec\xff\xa2"\x00\x824\x00\x88\xd2\xff\x82 \x00\xa2\xea\xff\x82\xd8\xff\x88\xd0\xff\x82\xee\xff\xa2 \x00\x822\x00\x88\xce\xff\x82\x1c\x00\xa2'
|
||||
b'\xee\xff\x82\xdc\xff\x88\xcc\xff\x82\xf2\xff\xa2\x1c\x00\x82.\x00\x88\xca\xff\x82\x18\x00\xa2\xf2\xff\x82\xe0\xff\x88\xc8\xff\x82\xf6\xff\xa2\x18\x00\x82*'
|
||||
b"\x00\x88\xc6\xff\x82\x12\x00\xa2\xf8\xff\x82\xe6\xff\x88\xc4\xff\x82\x00\x00\xa2\x0c\x00\x80\x80\x80\x80\x80\x80\x80\n''\x00\x00\x00\x00\x00\x00\x00\x8a"
|
||||
b'\x00\x00\x00\x00\x80\x80\x80\x80\x80\x80\x80'
|
||||
)
|
||||
|
||||
mos_blank = b""
|
||||
|
@ -157,13 +157,13 @@ class TestDriverMoshi(unittest.TestCase):
|
|||
kernel()
|
||||
with open(file1, "rb") as f:
|
||||
data = f.read()
|
||||
# print ('mos_image=(')
|
||||
# idx = 0
|
||||
# while idx < len(data):
|
||||
# sdata = data[idx:idx+40]
|
||||
# print (repr(sdata))
|
||||
# idx += 40
|
||||
# print (')')
|
||||
print ('mos_image=(')
|
||||
idx = 0
|
||||
while idx < len(data):
|
||||
sdata = data[idx:idx+40]
|
||||
print (repr(sdata))
|
||||
idx += 40
|
||||
print (')')
|
||||
self.assertEqual(data, mos_image)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue