scsl 1.0.1
Shimmering Clarity Standard Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
sctest::UnitTest Struct Reference

UnitTest describes a single unit test. More...

#include <SimpleSuite.h>

Public Attributes

std::string name
 What name should be shown when running tests?
 
std::function< bool()> test
 This is the test function to be run.
 
bool expect
 This is the value the test returns if it passes.
 

Detailed Description

UnitTest describes a single unit test.

It is a predicate: did the test pass?

Member Data Documentation

◆ expect

bool sctest::UnitTest::expect

This is the value the test returns if it passes.

◆ name

std::string sctest::UnitTest::name

What name should be shown when running tests?

◆ test

std::function<bool()> sctest::UnitTest::test

This is the test function to be run.


The documentation for this struct was generated from the following file: