Skip to content

Commit 5f90dfb

Browse files
committed
fixed file reading name for test_tabu_search.py
1 parent b438645 commit 5f90dfb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

searches/test_tabu_search.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from tabu_search import generate_neighbours, generate_first_solution, find_neighborhood, tabu_search
44

5-
TEST_FILE = os.path.join(os.path.dirname(__file__), './tabuTestData.txt')
5+
TEST_FILE = os.path.join(os.path.dirname(__file__), './tabu_test_data.txt')
66

77
NEIGHBOURS_DICT = {'a': [['b', '20'], ['c', '18'], ['d', '22'], ['e', '26']],
88
'c': [['a', '18'], ['b', '10'], ['d', '23'], ['e', '24']],
@@ -43,4 +43,4 @@ def test_tabu_search(self):
4343
best_sol, best_cost = tabu_search(FIRST_SOLUTION, DISTANCE, NEIGHBOURS_DICT, 4, 3)
4444

4545
self.assertEquals(['a', 'd', 'b', 'e', 'c', 'a'], best_sol)
46-
self.assertEquals(87, best_cost)
46+
self.assertEquals(87, best_cost)

tags

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ StackOverflowError data_structures/stacks/stack.py /^class StackOverflowError(Ba
157157
SubArray dynamic_programming/longest_sub_array.py /^class SubArray:$/;" c
158158
T project_euler/problem_02/sol2.py /^T = int(input().strip())$/;" v
159159
TAG machine_learning/k_means_clust.py /^TAG = 'K-MEANS-CLUST\/ '$/;" v
160-
TEST_FILE searches/test_tabu_search.py /^TEST_FILE = os.path.join(os.path.dirname(__file__), '.\/tabuTestData.txt')$/;" v
160+
TEST_FILE searches/test_tabu_search.py /^TEST_FILE = os.path.join(os.path.dirname(__file__), '.\/tabu_test_data.txt')$/;" v
161161
TFKMeansCluster dynamic_programming/k_means_clustering_tensorflow.py /^def TFKMeansCluster(vectors, noofclusters):$/;" f
162162
Tabu README.md /^## Tabu$/;" s
163163
Test linear_algebra_python/src/tests.py /^class Test(unittest.TestCase):$/;" c

0 commit comments

Comments
 (0)