projects
/
renesas-ra-flasher
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
setup.py: directory setup with pytest
[renesas-ra-flasher]
/
tests
/
test_parse.py
1
from flasher.flasher import calc_sum
2
import pytest
3
4
def test_calc_sum():
5
assert calc_sum(0x12, ['0x00']) == (0, 0x2, 0xEC)
6
assert calc_sum(0x34, ['0x00']) == (0, 0x2, 0xCA)
7
assert calc_sum(0x00, ['0x00']) == (0, 0x02, 0xFE)
8