SECTION("boolean expression parser: lower than - false"){REQUIRE(!boolean_expression("12 < 3"));}
SECTION("boolean expression parser: lower than - true"){REQUIRE(boolean_expression("12 < 22"));}
SECTION("boolean expression parser: greater than - true"){REQUIRE(boolean_expression("12 > 3"));}
SECTION("boolean expression parser: greater than - false"){REQUIRE(!boolean_expression("12 > 22"));}
SECTION("boolean expression parser: lower than or equal- false"){REQUIRE(!boolean_expression("12 <= 3"));}
SECTION("boolean expression parser: lower than or equal - true"){REQUIRE(boolean_expression("12 <= 22"));}
SECTION("boolean expression parser: greater than or equal - true"){REQUIRE(boolean_expression("12 >= 3"));}
SECTION("boolean expression parser: greater than or equal - false"){REQUIRE(!boolean_expression("12 >= 22"));}
SECTION("boolean expression parser: lower than or equal (same values) - true"){REQUIRE(boolean_expression("12 <= 12"));}
SECTION("boolean expression parser: greater than or equal (same values) - true"){REQUIRE(boolean_expression("12 >= 12"));}
SECTION("complex expression"){REQUIRE(boolean_expression("printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.6 and num_extruders>1"));}
SECTION("complex expression2"){REQUIRE(boolean_expression("printer_notes=~/.*PRINTER_VEwerfNDOR_PRUSA3D.*/ or printer_notes=~/.*PRINTertER_MODEL_MK2.*/ or (nozzle_diameter[0]==0.6 and num_extruders>1)"));}
SECTION("complex expression3"){REQUIRE(!boolean_expression("printer_notes=~/.*PRINTER_VEwerfNDOR_PRUSA3D.*/ or printer_notes=~/.*PRINTertER_MODEL_MK2.*/ or (nozzle_diameter[0]==0.3 and num_extruders>1)"));}