first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
24
libraries/FastLED/tests/test_grid.cpp
Normal file
24
libraries/FastLED/tests/test_grid.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
// g++ --std=c++11 test.cpp
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#include "test.h"
|
||||
#include "fl/grid.h"
|
||||
|
||||
|
||||
|
||||
using namespace fl;
|
||||
|
||||
TEST_CASE("Grid_int16_t") {
|
||||
Grid<int16_t> grid(2, 2);
|
||||
REQUIRE_EQ(grid.width(), 2);
|
||||
REQUIRE_EQ(grid.height(), 2);
|
||||
auto min_max = grid.minMax();
|
||||
|
||||
REQUIRE_EQ(min_max.x, 0);
|
||||
REQUIRE_EQ(min_max.y, 0);
|
||||
|
||||
grid.at(0, 0) = 32767;
|
||||
REQUIRE_EQ(32767, grid.at(0, 0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue