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.
19 lines
471 B
19 lines
471 B
#include <catch2/catch_test_macros.hpp>
|
|
#include "guecs/sfml/backend.hpp"
|
|
#include <fmt/core.h>
|
|
#include <string>
|
|
#include "parser.hpp"
|
|
|
|
TEST_CASE("parse a simple example", "[parsing]") {
|
|
sfml::Backend backend;
|
|
guecs::init(&backend);
|
|
|
|
auto data = parse_slides("./sample/01-a-good-first-program.md");
|
|
REQUIRE(data->slides.size() > 0);
|
|
|
|
auto contents = load_file("./sample/01-a-good-first-program.md");
|
|
Parser rp;
|
|
rp.parse(contents);
|
|
|
|
REQUIRE(!rp.error);
|
|
}
|
|
|