Merge remote-tracking branch 'origin/main'

This commit is contained in:
2024-06-25 11:05:37 -04:00

View File

@@ -1,8 +1,6 @@
/// Josh Unit Test Library
#pragma once
#include <functional>
#include <string>
#include <vector>
@@ -18,8 +16,8 @@ namespace jtest {
struct testdef
{
std::string testname;
const std::function<void()>& callback;
const std::string file; // <- & is not needed here -maxine
std::function<void()> callback;
std::string file; // <- & is not needed here -maxine
int line;
bool passed;
};
@@ -161,5 +159,4 @@ namespace jtest {
//#define TEST(a, b) jtest::test(a, b, __FILE__, __LINE__);
// Same definition as before essentially, but points to a different function which adds the test to the global vector.
// -maxine
#define TEST(a, b) jtest::definetest(a, b, __FILE__, __LINE__);