Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dipps18 committed Nov 28, 2023
1 parent 86192c0 commit 72510a9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions test/test_max_clique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ TEST_CASE("Three Connected Graph") {

SECTION("Max clique of threeConnectedGraph is") {
auto vertices = threeConnected.maxClique();
auto verticesEstimate = threeConnected.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
threeConnected.maxClique(AlgorithmAccuracy::APPROXIMATE);
REQUIRE(vertices.size() == 3);
REQUIRE(verticesEstimate.size() == 3);
}
Expand All @@ -34,7 +35,8 @@ TEST_CASE("Four Connected Graph") {

SECTION("Max clique of fourConnectedGraph is") {
auto vertices = fourConnected.maxClique();
auto verticesEstimate = fourConnected.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
fourConnected.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 4);
REQUIRE(verticesEstimate.size() == 4);
Expand All @@ -51,7 +53,8 @@ TEST_CASE("Disconnected Graph with 4 vertices") {

SECTION("Max cliques of disconnectedGraph are") {
auto vertices = disconnectedGraph.maxClique();
auto verticesEstimate = disconnectedGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
disconnectedGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 2);
REQUIRE(verticesEstimate.size() == 2);
Expand All @@ -68,7 +71,8 @@ TEST_CASE("Singleton Vertex in graph with 4 vertices") {

SECTION("Max cliques of singletonGraph are") {
auto vertices = singletonGraph.maxClique();
auto verticesEstimate = singletonGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
singletonGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 2);
REQUIRE(verticesEstimate.size() == 2);
Expand All @@ -89,7 +93,8 @@ TEST_CASE("Large Disconnected Graph with Multiple Components") {

SECTION("Max cliques of largeDisconnectedGraph are") {
auto vertices = largeDisconnectedGraph.maxClique();
auto verticesEstimate = largeDisconnectedGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
largeDisconnectedGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 2);
REQUIRE(verticesEstimate.size() == 2);
Expand All @@ -107,7 +112,8 @@ TEST_CASE("Singleton Vertex in Large Connected Graph") {

SECTION("Max cliques of singletonLargeGraph are") {
auto vertices = singletonLargeGraph.maxClique();
auto verticesEstimate = singletonLargeGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
singletonLargeGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 2);
REQUIRE(verticesEstimate.size() == 2);
Expand All @@ -130,7 +136,8 @@ TEST_CASE("Graph with 10 Vertices and Max Clique Size of 5") {

SECTION("Max clique of tenVerticesGraph is") {
auto vertices = tenVerticesGraph.maxClique();
auto verticesEstimate = tenVerticesGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);
auto verticesEstimate =
tenVerticesGraph.maxClique(AlgorithmAccuracy::APPROXIMATE);

REQUIRE(vertices.size() == 5);
REQUIRE(verticesEstimate.size() == 5);
Expand Down

0 comments on commit 72510a9

Please sign in to comment.