General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
314 B

  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. #include <memory>
  5. struct test_scaffold{
  6. std::string name;
  7. virtual int run() = 0;
  8. virtual ~test_scaffold() = default;
  9. };
  10. std::vector<std::unique_ptr<test_scaffold>> tests;
  11. struct append_test {
  12. append_test(test_scaffold* ptr) {
  13. tests.emplace_back(ptr);
  14. }
  15. };