dev-fix-calculations #59

Merged
jblu merged 4 commits from dev-fix-calculations into main 2023-10-05 07:29:02 -05:00
Showing only changes of commit 588382ae14 - Show all commits

View File

@ -69,12 +69,12 @@ class TestQbitmaid(unittest.TestCase):
pass pass
def test_isoldtor_sanity(self): def test_isoldtor_sanity(self):
self.assertTrue(is_old_tor(1,2,4)) self.assertFalse(is_old_tor(1,2))
def test_isoldtor(self): def test_isoldtor(self):
self.assertFalse(is_old_tor(1661150664,2419200,1662049004.2101078)) self.assertTrue(is_old_tor(1,1))
self.assertFalse(is_old_tor(1661150664,2419200,1662049004)) self.assertTrue(is_old_tor(2,1))
self.assertFalse(is_old_tor(1661150664.000000,2419200.0000000,1662049004.2101078)) self.assertFalse(is_old_tor(1,2))
def test_isprotectedoverratio_sanity(self): def test_isprotectedoverratio_sanity(self):
self.assertTrue(is_protected_over_ratio(2,1,'a','a,b,c')) self.assertTrue(is_protected_over_ratio(2,1,'a','a,b,c'))