[Python-checkins] benchmarks: Remove dead file.

brett.cannon python-checkins at python.org
Sat Sep 15 00:12:08 CEST 2012


http://hg.python.org/benchmarks/rev/29b7da4ef90b
changeset:   166:29b7da4ef90b
user:        Brett Cannon <brett at python.org>
date:        Fri Sep 14 10:23:45 2012 -0400
summary:
  Remove dead file.

files:
  performance/test_bm_ai.py |  31 ---------------------------
  1 files changed, 0 insertions(+), 31 deletions(-)


diff --git a/performance/test_bm_ai.py b/performance/test_bm_ai.py
deleted file mode 100644
--- a/performance/test_bm_ai.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-
-"""Brief tests for bm_ai.py"""
-
-__author__ = "collinwinter at google.com (Collin Winter)"
-
-# Python imports
-import unittest
-
-# Local imports
-import bm_ai
-
-
-class AiTests(unittest.TestCase):
-
-    def test_permutations(self):
-        result = set(bm_ai.permutations(range(3), 2))
-        correct = set([(0, 1), (0, 2), (1, 0), (1, 2), (2, 0), (2, 1)])
-        self.assertEqual(result, correct)
-
-    def test_alphametics(self):
-        result = set(bm_ai.alphametics("ABAB + BABA == CCCC"))
-        self.assertTrue("2727 + 7272 == 9999" in result, result)
-
-    def test_n_queens(self):
-        result = set(bm_ai.n_queens(4))
-        correct = set([(1, 3, 0, 2), (2, 0, 3, 1)])
-        self.assertEqual(result, correct)
-
-if __name__ == "__main__":
-    unittest.main()

-- 
Repository URL: http://hg.python.org/benchmarks


More information about the Python-checkins mailing list