2014-11-21 21:26:24 -08:00
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
#include <3ds.h>
|
|
|
|
|
|
|
|
#include "output.h"
|
2014-12-10 22:24:26 -08:00
|
|
|
#include "common/string_funcs.h"
|
2014-11-21 21:26:24 -08:00
|
|
|
|
2014-12-14 02:37:52 -08:00
|
|
|
void SoftAssertLog(const std::string& function, int line, const std::string& condition)
|
|
|
|
{
|
2015-03-10 01:56:54 +01:00
|
|
|
Log(Common::FormatString("SOFTASSERT FAILURE: `%s`\n", condition.c_str()));
|
|
|
|
Log(Common::FormatString(" At `%s` L%i\n", function.c_str(), line));
|
2014-12-14 02:37:52 -08:00
|
|
|
}
|
|
|
|
|
2014-12-10 22:24:26 -08:00
|
|
|
void PrintSuccess(const std::string& group, const std::string& name, bool val)
|
2014-11-21 21:26:24 -08:00
|
|
|
{
|
2015-03-10 01:56:54 +01:00
|
|
|
Log(Common::FormatString("%s: [%s] %s\n", val ? "SUCCESS" : "FAILURE", group.c_str(), name.c_str()));
|
2014-11-21 21:26:24 -08:00
|
|
|
}
|