scsl  1.1.1
Shimmering Clarity Standard Library
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? More...
 
std::function< bool()> test
 This is the test function to be run. More...
 
bool expect
 This is the value the test returns if it passes. More...
 

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: