Already better than CSS because I can center stuff.

This commit is contained in:
Zed A. Shaw 2025-02-15 12:13:58 -05:00
parent 1620a5420f
commit 60ed686eb0
6 changed files with 58 additions and 42 deletions

View file

@ -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);