aboutsummaryrefslogtreecommitdiffstats
path: root/riscv.py
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-28 15:22:11 +0000
committers-ol <s-ol@users.noreply.github.com>2020-05-28 15:22:11 +0000
commit51091f7355a89aab6347523f3e3e53ed328b4dfc (patch)
treec3a11ca809ba075a8e2b37c217c6ed6278905ff2 /riscv.py
parenttests, cleanup, verify.py (diff)
downloadsubv-51091f7355a89aab6347523f3e3e53ed328b4dfc.tar.gz
subv-51091f7355a89aab6347523f3e3e53ed328b4dfc.zip
survey, pack
Diffstat (limited to 'riscv.py')
-rw-r--r--riscv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv.py b/riscv.py
index 245d60d..238a06e 100644
--- a/riscv.py
+++ b/riscv.py
@@ -160,6 +160,10 @@ class TestHelpers(unittest.TestCase):
byteify((0x12345678, 32)),
[(0x78,), (0x56,), (0x34,), (0x12,)]
)
+ self.assertEqual(
+ byteify((0x4801813, 32)),
+ [(0x13,), (0x18,), (0x80,), (0x04,)]
+ )
class TestFormats(unittest.TestCase):
def test_format_u(self):