Can now do UI rendering based on the name and also have gaps in the grid reliably.
This commit is contained in:
parent
79c84ce885
commit
3ec2bf4784
4 changed files with 39 additions and 26 deletions
|
@ -23,13 +23,17 @@ TEST_CASE("test basic ops", "[lel]") {
|
|||
|
||||
for(size_t colcount = 0; colcount < row.size(); colcount++) {
|
||||
auto &name = row[colcount];
|
||||
auto &cell = parser.cells.at(name);
|
||||
REQUIRE(cell.row == int(rowcount));
|
||||
REQUIRE(cell.col == int(colcount));
|
||||
if(name == "_") {
|
||||
REQUIRE(!parser.cells.contains(name));
|
||||
} else {
|
||||
auto &cell = parser.cells.at(name);
|
||||
REQUIRE(cell.row == int(rowcount));
|
||||
REQUIRE(cell.col == int(colcount));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
REQUIRE(parser.cells.size() == 12);
|
||||
REQUIRE(parser.cells.size() == 11);
|
||||
REQUIRE(parser.cells.at("label2").right == true);
|
||||
REQUIRE(parser.cells.at("text1").expand == true);
|
||||
REQUIRE(parser.cells.at("text1").w == 300);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue