Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
spec.h
Go to the documentation of this file.
1#pragma once
2
4#include <Specs/SpecDone.h>
5
6#include <functional>
7
8#include "../GlobalInterface.h"
9
11
12 inline void spec(std::string_view description, std::function<void()> body) {
14 description, function_pointer(std::move(body))
15 );
16 }
17
18 inline void spec(std::string_view description, std::function<void(SpecsCpp::SpecDone)> body) {
20 description, function_pointer(std::move(body))
21 );
22 }
23}
void spec(std::string_view description, std::function< void()> body)
Definition spec.h:12
void define_test_fn(std::string_view description, FunctionPointer< void()> body)