#include "catch.hpp"
#include "../src/Board.h"

TEST_CASE("Board class tests", "[Board]")
{
  SECTION("The constructor properly sets width and height of the board")
  {
    const int desired_width = 11;
    const int desired_height = 12;
    Board b(desired_height, desired_width);
    REQUIRE(desired_height == b.height());
    REQUIRE(desired_width == b.width());
  }
}

#include "catch.hpp"
#include "../src/Board.h"

TEST_CASE("Board class tests", "[Board]")
{
  SECTION("The constructor properly sets width and height of the board")
  {
    const int desired_width = 11;
    const int desired_height = 12;
    Board b(desired_width, desired_height);
    REQUIRE(desired_width == b.width());
    REQUIRE(desired_height == b.height());
  }
}

--- 
+++ 
@@ -7,8 +7,8 @@
   {
     const int desired_width = 11;
     const int desired_height = 12;
-    Board b(desired_width, desired_height);
+    Board b(desired_height, desired_width);
+    REQUIRE(desired_height == b.height());
     REQUIRE(desired_width == b.width());
-    REQUIRE(desired_height == b.height());
   }
 }
Fix the order of parameters in Board class tests

The height should be passed as a first parameter, and the width
as the second one. It used to be the other way, causing one of the test
to (rightly so!) fail. This commit fixes the order of both parameters
in order to reflect a recent change in Board implementation.
