Skip to content

Commit

Permalink
fixed header problems
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Mar 28, 2024
1 parent b8bcea6 commit ce4ecef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ template <typename T> class best_first{
int64_t size = q.size();
for(int64_t i = 0; i<size; i++){
std::pair<T, double> current = q.top();
std::cout << current.first << " " << current.second << '\n';
if(current.first == end){
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/machine_learning/search_algorithms/best_first.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "../../../src/machine_learning/search_algorithms/best_first/best_first.h"
#include <string>

TEST_CASE("testing search function"){
TEST_CASE("testing search function for best_first class"){
best_first<char> h;
h.insert_node('s', INT_MAX);
h.insert_node('A', 10.4);
Expand Down
2 changes: 1 addition & 1 deletion tests/machine_learning/search_algorithms/hill_climbing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TEST_CASE("testing edges with insertion"){
REQUIRE(h.has_edge(0, 3) == false);
}

TEST_CASE("testing search function"){
TEST_CASE("testing search function for hill climbing class"){
hill_climbing<char> h;
h.insert_node('s', INT_MAX);
h.insert_node('A', 10.4);
Expand Down

0 comments on commit ce4ecef

Please sign in to comment.