Skip to content

Commit

Permalink
cleaning test
Browse files Browse the repository at this point in the history
  • Loading branch information
wrcorcoran committed Sep 27, 2024
1 parent 7e37bb1 commit 0f1de02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/PowTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TEST(PowAdjTest, libre_texts) {
graph.addEdge(&e5);
graph.addEdge(&e6);

auto res = matrixPow(graph.getAdjMatrix(), 2);
CXXGraph::PowAdjResult res = matrixPow(graph.getAdjMatrix(), 2);

ASSERT_TRUE(res.success);
ASSERT_TRUE(res.result[std::make_pair("a", "c")] == 2);
Expand Down Expand Up @@ -66,7 +66,7 @@ TEST(PowAdjTest, triangle) {
graph.addEdge(&e2);
graph.addEdge(&e3);

auto res = matrixPow(graph.getAdjMatrix(), 5);
CXXGraph::PowAdjResult res = matrixPow(graph.getAdjMatrix(), 5);

ASSERT_TRUE(res.success);
ASSERT_TRUE(res.result[std::make_pair("a", "a")] == 10);
Expand Down Expand Up @@ -111,7 +111,7 @@ TEST(PowAdjTest, dgl) {
graph.addEdge(&e9);
graph.addEdge(&e10);

auto res = matrixPow(graph.getAdjMatrix(), 3);
CXXGraph::PowAdjResult res = matrixPow(graph.getAdjMatrix(), 3);

ASSERT_TRUE(res.success);
ASSERT_TRUE(res.result[std::make_pair("a", "a")] == 1);
Expand Down Expand Up @@ -148,7 +148,7 @@ TEST(PowTransTest, transition_matrix) {
graph.addEdge(&e6);
graph.addEdge(&e7);

auto res = matrixPow(graph.getTransitionMatrix(), 10);
CXXGraph::PowTransResult res = matrixPow(graph.getTransitionMatrix(), 10);

const double threshold = 1e-3;

Expand Down

0 comments on commit 0f1de02

Please sign in to comment.