Sane C++ Libraries
C++ Platform Abstraction Libraries
Testing

🟨 Simple testing framework used by all of the other libraries (see Testing for more details) More...

Classes

struct  SC::TestReport
 Collects multiple TestCase and reports their results. More...
 
struct  SC::TestCase
 A test case that can be split into multiple sections. More...
 

Macros

#define SC_TEST_EXPECT(e)
 Records a test expectation (eventually aborting or breaking o n failed test) More...
 

Detailed Description

🟨 Simple testing framework used by all of the other libraries (see Testing for more details)

Macro Definition Documentation

◆ SC_TEST_EXPECT

#define SC_TEST_EXPECT (   e)

#include <Testing.h>

Value:
recordExpectation(StringView(#e##_a8), (e)) \
? (void)0 \
: (TestCase::report.debugBreakOnFailedTest ? SC_COMPILER_DEBUG_BREAK : (void)0)

Records a test expectation (eventually aborting or breaking o n failed test)