#include "lel.hpp" #include #include #include #include "ansi_parser.hpp" #include #include TEST_CASE("test basic ops", "[lel]") { LELParser parser(0, 0, 500, 500); bool good = parser.parse( "[ label_1 | *label3 ]" "[ (300,300)text1 | (150)people ]" "[ >label2 | _ ]" "[ message | buttons ]"); REQUIRE(good); REQUIRE(parser.row_count == 4); REQUIRE(parser.max_columns == 2); REQUIRE(parser.cells.size() == 8); REQUIRE(parser.cells.at("label2").left == false); REQUIRE(parser.cells.at("label3").expand == true); REQUIRE(parser.cells.at("people").expand == false); REQUIRE(parser.cells.at("message").expand == false); }