Already better than CSS because I can center stuff.
This commit is contained in:
parent
1620a5420f
commit
60ed686eb0
6 changed files with 58 additions and 42 deletions
|
@ -14,7 +14,7 @@ TEST_CASE("test basic ops", "[lel]") {
|
|||
"[ label_1 | label3 | test1]"
|
||||
"[ *(300,300)text1 | (150)people | ^test2]"
|
||||
"[ >label2 | _ | .test3]"
|
||||
"[ message | buttons | test4]");
|
||||
"[ =message | buttons | test4]");
|
||||
|
||||
REQUIRE(good);
|
||||
|
||||
|
@ -27,6 +27,7 @@ TEST_CASE("test basic ops", "[lel]") {
|
|||
REQUIRE(parser.cells.at("text1").h == 300);
|
||||
REQUIRE(parser.cells.at("people").expand == false);
|
||||
REQUIRE(parser.cells.at("message").expand == false);
|
||||
REQUIRE(parser.cells.at("message").center == true);
|
||||
|
||||
for(auto& [name, cell] : parser.cells) {
|
||||
REQUIRE(cell.w > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue