General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

18 行
314 B

#pragma once
#include <string>
#include <vector>
#include <memory>
struct test_scaffold{
std::string name;
virtual int run() = 0;
virtual ~test_scaffold() = default;
};
std::vector<std::unique_ptr<test_scaffold>> tests;
struct append_test {
append_test(test_scaffold* ptr) {
tests.emplace_back(ptr);
}
};