Skip to content

Commit ce1a5ef

Browse files
committed
Fix test
1 parent 8c6a32a commit ce1a5ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fireflyalgorithm/tests/test_firefly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ def sphere(x):
99

1010
class TestFA(TestCase):
1111
def test_algorithm(self):
12-
FA = FireflyAlgorithm(function=sphere, dim=10, lb=-5, ub=5, max_evals=10000)
13-
best = FA.move()
12+
FA = FireflyAlgorithm()
13+
best = FA.run(function=sphere, dim=10, lb=-5, ub=5, max_evals=10000)
1414
self.assertLess(best, 5)

0 commit comments

Comments
 (0)