You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
442 B
22 lines
442 B
3 weeks ago
|
#include "lel.hpp"
|
||
|
#include <catch2/catch_test_macros.hpp>
|
||
|
#include <fmt/core.h>
|
||
|
#include <string>
|
||
|
#include "ansi_parser.hpp"
|
||
|
#include <codecvt>
|
||
|
#include <iostream>
|
||
|
|
||
|
|
||
|
|
||
|
TEST_CASE("test basic ops", "[lel]") {
|
||
|
LELParser parser;
|
||
|
|
||
|
bool good = parser.parse(
|
||
|
"[ label_1 | label3 ]"
|
||
|
"[ (300,300)*text1 | (150)people ]"
|
||
|
"[ <label2 | _ ]"
|
||
|
"[ message | buttons ]");
|
||
|
|
||
|
REQUIRE(good);
|
||
|
}
|