TestGrid.cxx File Reference
#include <gtest/gtest.h>
#include <grid.hxx>
#include <functional>
#include <list>
Include dependency graph for TestGrid.cxx:

Go to the source code of this file.

Functions

 TEST (TestGrid, build)
 

Function Documentation

TEST ( TestGrid  ,
build   
)

Definition at line 35 of file TestGrid.cxx.

36 {
37  // Empty Grid
38  {
39  Grid<CellInfoBase> grid(0, 0);
40  EXPECT_EQ(grid.Height(), 0);
41  EXPECT_EQ(grid.Width(), 0);
42  }
43 
44  // Empty Connected Grid
45  {
46  Grid<CellInfoBase> grid(0, 0, true);
47  EXPECT_EQ(grid.Height(), 0);
48  EXPECT_EQ(grid.Width(), 0);
49  }
50 
51  // 10 x 10 Grid
52  {
53  Grid<CellInfoBase> grid(10, 10);
54  EXPECT_EQ(grid.Height(), 10);
55  EXPECT_EQ(grid.Width(), 10);
56  }
57 
58  // 10 x 10 Connected Grid
59  {
60  Grid<CellInfoBase> grid(10, 10, true);
61  EXPECT_EQ(grid.Height(), 10);
62  EXPECT_EQ(grid.Width(), 10);
63  }
64 }