If Amazon used this Besos wouldn't have banned PowerPoint.
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.
 
 
 
 
 
 
besos-loves-slides/tests/parsing.cpp

16 lines
401 B

#include <catch2/catch_test_macros.hpp>
#include "backend.hpp"
#include <fmt/core.h>
#include <string>
#include "parser.hpp"
TEST_CASE("parse a simple example", "[parsing]") {
gui::Backend backend;
auto data = parse_slides("./sample/about-bezos.md", [&](nlohmann::json& config) {
backend.set_font(config["font_file"]);
guecs::init(&backend);
});
REQUIRE(data->slides.size() > 0);
}