From 5f90dfbbe791c5d196f47c85763a5ab852625e50 Mon Sep 17 00:00:00 2001 From: Alex Brown Date: Fri, 19 Oct 2018 17:40:52 -0500 Subject: [PATCH] fixed file reading name for test_tabu_search.py --- searches/test_tabu_search.py | 4 ++-- tags | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/searches/test_tabu_search.py b/searches/test_tabu_search.py index 1bc2d3361..95d2fea40 100644 --- a/searches/test_tabu_search.py +++ b/searches/test_tabu_search.py @@ -2,7 +2,7 @@ import unittest import os from tabu_search import generate_neighbours, generate_first_solution, find_neighborhood, tabu_search -TEST_FILE = os.path.join(os.path.dirname(__file__), './tabuTestData.txt') +TEST_FILE = os.path.join(os.path.dirname(__file__), './tabu_test_data.txt') NEIGHBOURS_DICT = {'a': [['b', '20'], ['c', '18'], ['d', '22'], ['e', '26']], 'c': [['a', '18'], ['b', '10'], ['d', '23'], ['e', '24']], @@ -43,4 +43,4 @@ class TestClass(unittest.TestCase): best_sol, best_cost = tabu_search(FIRST_SOLUTION, DISTANCE, NEIGHBOURS_DICT, 4, 3) self.assertEquals(['a', 'd', 'b', 'e', 'c', 'a'], best_sol) - self.assertEquals(87, best_cost) \ No newline at end of file + self.assertEquals(87, best_cost) diff --git a/tags b/tags index 80936458e..203862e43 100644 --- a/tags +++ b/tags @@ -157,7 +157,7 @@ StackOverflowError data_structures/stacks/stack.py /^class StackOverflowError(Ba SubArray dynamic_programming/longest_sub_array.py /^class SubArray:$/;" c T project_euler/problem_02/sol2.py /^T = int(input().strip())$/;" v TAG machine_learning/k_means_clust.py /^TAG = 'K-MEANS-CLUST\/ '$/;" v -TEST_FILE searches/test_tabu_search.py /^TEST_FILE = os.path.join(os.path.dirname(__file__), '.\/tabuTestData.txt')$/;" v +TEST_FILE searches/test_tabu_search.py /^TEST_FILE = os.path.join(os.path.dirname(__file__), '.\/tabu_test_data.txt')$/;" v TFKMeansCluster dynamic_programming/k_means_clustering_tensorflow.py /^def TFKMeansCluster(vectors, noofclusters):$/;" f Tabu README.md /^## Tabu$/;" s Test linear_algebra_python/src/tests.py /^class Test(unittest.TestCase):$/;" c