Use a lel:: namespace.
This commit is contained in:
parent
cebf61a794
commit
1620a5420f
6 changed files with 155 additions and 148 deletions
|
@ -8,10 +8,7 @@
|
|||
#include <vector>
|
||||
|
||||
TEST_CASE("test basic ops", "[lel]") {
|
||||
LELParser parser(0, 0, 500, 500);
|
||||
std::vector<std::string> labels{
|
||||
"label_1", "label3", "text1", "people",
|
||||
"label2", "message", "buttons"};
|
||||
lel::Parser parser(0, 0, 500, 500);
|
||||
|
||||
bool good = parser.parse(
|
||||
"[ label_1 | label3 | test1]"
|
||||
|
@ -31,12 +28,7 @@ TEST_CASE("test basic ops", "[lel]") {
|
|||
REQUIRE(parser.cells.at("people").expand == false);
|
||||
REQUIRE(parser.cells.at("message").expand == false);
|
||||
|
||||
for(auto name : labels) {
|
||||
auto& cell = parser.cells.at(name);
|
||||
|
||||
fmt::println("name={}; col/row={},{}; x/y={},{} w/h={},{}; right={}, bottom={}, expand={}",
|
||||
name, cell.col, cell.row, cell.x, cell.y, cell.w, cell.h, cell.right, cell.bottom, cell.expand);
|
||||
|
||||
for(auto& [name, cell] : parser.cells) {
|
||||
REQUIRE(cell.w > 0);
|
||||
REQUIRE(cell.h > 0);
|
||||
REQUIRE(cell.row < parser.rows);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue