From 65903189a2130ebdf7fd695337fccab26798d771 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 17 Apr 2022 11:51:29 +0200 Subject: [PATCH] removed tests for bind_twos_complement --- test/test_helpers.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/test_helpers.py b/test/test_helpers.py index f37517d..1ad8fa9 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -4,16 +4,4 @@ from riscemu.helpers import * class TestHelpers(TestCase): - - def test_bind_twos_complement(self): - minval = -(1 << 31) - maxval = ((1 << 31)-1) - - self.assertEqual(bind_twos_complement(minval), minval, "minval preserves") - self.assertEqual(bind_twos_complement(minval), minval, ) - self.assertEqual(bind_twos_complement(maxval), maxval, "maxval preserves") - self.assertEqual(bind_twos_complement(minval - 1), maxval, "minval-1 wraps") - self.assertEqual(bind_twos_complement(maxval + 1), minval, "maxval+1 wraps") - self.assertEqual(bind_twos_complement(0), 0, "0 is 0") - self.assertEqual(bind_twos_complement(1), 1, "1 is 1") - self.assertEqual(bind_twos_complement(-1), -1, "-1 is -1") \ No newline at end of file + pass \ No newline at end of file