1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#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")); } }