/
thomas-king
/
Raze
Обзор
Документация
Войти
/
thomas-king
/
Raze
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/UnitTests/TestCase.h
42 строки
744 B
Ace Rodstin
Update tests
23 ноя 2023, 13:35
23 ноя 2023, 13:35
24b75eb
Код
Авторство
О чём код?
// // TestCase.h // UnitTests // // Created by Ace Rodstin on 11/1/23. // Updated by Ace Rodstin on 11/27/23. // // Copyright (C) Ace Rodstin 2023. All rights reserved. // #ifndef UNIT_TESTS_TEST_CASE_HEADER_FILE #define UNIT_TESTS_TEST_CASE_HEADER_FILE #include <string> #include <functional> #include <vector> #include "Assertion.h" using namespace std; namespace unit_tests { class TestCase { public: using Id = string; using Test = function<vector<Assertion>()>; TestCase(Id id, Test test); Id getId() const; bool run(); Assertion getFailedAssertion() const; private: const Id id; const Test test; Assertion failedAssertion; }; } #endif