void Test::pass_test()
{
IO::print("\033[32mok\033[0m\n");
- ++passed;
+ passed = true;
}
void Test::fail_test(const string &why)
detail_debug += format("%s\n", str);
}
+void Test::fail(const string &why)
+{
+ throw test_failed(why);
+}
+
Test::Factory::Factory()
{