From 6ff43f8d5aff3e8e9c9508d095895b591a816305 Mon Sep 17 00:00:00 2001 From: LSaldyt Date: Mon, 9 Oct 2017 14:01:17 -0600 Subject: [PATCH] Updates tests --- copycat/temperature.py | 1 + tests.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/copycat/temperature.py b/copycat/temperature.py index 5457c97..2a72e64 100644 --- a/copycat/temperature.py +++ b/copycat/temperature.py @@ -1,6 +1,7 @@ import math # Alternate formulas for getAdjustedProbability + def _original(temp, prob): if prob == 0 or prob == 0.5 or temp == 0: return prob diff --git a/tests.py b/tests.py index eccbafd..c7078c6 100644 --- a/tests.py +++ b/tests.py @@ -69,7 +69,7 @@ class TestCopycat(unittest.TestCase): self.fail('No instances of expected key %s were produced! %r != %r' % (k, actual, expected)) def run_testcase(self, initial, modified, target, iterations, expected): - pprint(expected) + #tpprint(expected) actual = Copycat().run(initial, modified, target, iterations) self.assertEqual(sum(a['count'] for a in list(actual.values())), iterations) self.assertProbabilitiesLookRoughlyLike(actual, expected)