#define CATCH_CONFIG_MAIN

#include "smolblok.hpp"
#include <catch2/catch.hpp>

SCENARIO("smolblok")
{
    smolblok s;

    GIVEN("invalid plugins")
    {
        REQUIRE(!s.registerFormatPlugin("", ""));
        REQUIRE(!s.registerFormatPlugin("Format", "missing.dll"));
    }

    GIVEN("invalid subscriptions")
    {
        REQUIRE(!s.addSubscriptions(""));
        REQUIRE(!s.addSubscriptions("missing.txt"));
    }
}