Skip to content

Commit

Permalink
Corrected Test for Export
Browse files Browse the repository at this point in the history
Related Issue #4
  • Loading branch information
ZigRazor authored Jul 5, 2021
1 parent 1c1c622 commit ab0575f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/RWOutputTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ TEST(RWOutputTest, test_1)
int res = graph.writeToFile();
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("graph.csv"));
ASSERT_FALSE(exists_test("NodeFeat_graph.csv"));
ASSERT_FALSE(exists_test("EdgeWeight_graph.csv"));
ASSERT_FALSE(exists_test("graph_NodeFeat.csv"));
ASSERT_FALSE(exists_test("graph_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_2)
Expand All @@ -45,8 +45,8 @@ TEST(RWOutputTest, test_2)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::STANDARD_CSV);
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("graph.csv"));
ASSERT_FALSE(exists_test("NodeFeat_graph.csv"));
ASSERT_FALSE(exists_test("EdgeWeight_graph.csv"));
ASSERT_FALSE(exists_test("graph_NodeFeat.csv"));
ASSERT_FALSE(exists_test("graph_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_3)
Expand All @@ -66,8 +66,8 @@ TEST(RWOutputTest, test_3)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::STANDARD_CSV, ".", "test_3");
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("test_3.csv"));
ASSERT_FALSE(exists_test("NodeFeat_test_3.csv"));
ASSERT_FALSE(exists_test("EdgeWeight_test_3.csv"));
ASSERT_FALSE(exists_test("test_3_NodeFeat.csv"));
ASSERT_FALSE(exists_test("test_3_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_4)
Expand All @@ -84,8 +84,8 @@ TEST(RWOutputTest, test_4)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::OUT_1, "test_4");
ASSERT_EQ(res, -1);
ASSERT_FALSE(exists_test("test_4.csv"));
ASSERT_FALSE(exists_test("NodeFeat_test_4.csv"));
ASSERT_FALSE(exists_test("EdgeWeight_test_4.csv"));
ASSERT_FALSE(exists_test("test_4_NodeFeat.csv"));
ASSERT_FALSE(exists_test("test_4_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_5)
Expand All @@ -102,8 +102,8 @@ TEST(RWOutputTest, test_5)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::STANDARD_CSV, ".", "test_5", false, true, true);
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("test_5.csv"));
ASSERT_TRUE(exists_test("NodeFeat_test_5.csv"));
ASSERT_TRUE(exists_test("EdgeWeight_test_5.csv"));
ASSERT_TRUE(exists_test("test_5_NodeFeat.csv"));
ASSERT_TRUE(exists_test("test_5_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_6)
Expand All @@ -120,8 +120,8 @@ TEST(RWOutputTest, test_6)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::STANDARD_CSV, ".", "test_6", false, false, true);
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("test_6.csv"));
ASSERT_FALSE(exists_test("NodeFeat_test_6.csv"));
ASSERT_TRUE(exists_test("EdgeWeight_test_6.csv"));
ASSERT_FALSE(exists_test("test_6_NodeFeat.csv"));
ASSERT_TRUE(exists_test("test_6_EdgeWeight.csv"));
}

TEST(RWOutputTest, test_7)
Expand All @@ -138,6 +138,6 @@ TEST(RWOutputTest, test_7)
int res = graph.writeToFile(CXXGRAPH::Graph<int>::InputOutputFormat::STANDARD_CSV, ".", "test_7", false, true, false);
ASSERT_EQ(res, 0);
ASSERT_TRUE(exists_test("test_7.csv"));
ASSERT_TRUE(exists_test("NodeFeat_test_7.csv"));
ASSERT_FALSE(exists_test("EdgeWeight_test_7.csv"));
ASSERT_TRUE(exists_test("test_7_NodeFeat.csv"));
ASSERT_FALSE(exists_test("test_7_EdgeWeight.csv"));
}

0 comments on commit ab0575f

Please sign in to comment.