From 0a79f38843a5ac61280355453747136b5071a8fb Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 16 Jan 2023 21:49:15 +0100 Subject: [PATCH] Notes. --- modules/unit_test/unit_test.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/unit_test/unit_test.h b/modules/unit_test/unit_test.h index 282119bf5..150b2b8b1 100644 --- a/modules/unit_test/unit_test.h +++ b/modules/unit_test/unit_test.h @@ -16,9 +16,35 @@ public: // bool process() -> return true when finished // bool _process() + //sub_section_start(name) + //sub_section_end() + + // test(name); + // testing(name); //maybe? + // assert(a == "b", "Testing whenther a == b") // assert_equals(a, "b") ? -> could generate text automatically + //--- + /* + + bool _process() { + testing("String int conversion."); + assert(String::num(1) == "1"); + + + //or + testing("String int conversion."); + //cpp macro + UTASSERT(String::num(1) == "1"); -> assert(String::num(1) == "1", __LINE__); + + sub_section_start(name) + + } + + */ + ///--- + // process type: process, physics process //api to get results @@ -27,6 +53,8 @@ public: //get_runner() -> returns runner + + UnitTest(); virtual ~UnitTest();