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.

30 lines
618 B

пре 2 година
  1. #include "gp/algorithms/tmp_manip.hpp"
  2. #include "test_scaffold.h"
  3. struct max_size_test : public test_scaffold {
  4. uint32_t seed;
  5. max_size_test() {
  6. name = __FILE__ ":1";
  7. }
  8. virtual int run() {
  9. return gp::max_size<uint32_t, uint64_t, int8_t>() != 8;
  10. }
  11. };
  12. append_test dummy_lfhz1r43(new max_size_test{});
  13. struct fixed_size_test : public test_scaffold {
  14. uint32_t seed;
  15. fixed_size_test() {
  16. name = __FILE__ ":1";
  17. }
  18. virtual int run() {
  19. return !(gp::is_fixed_size<uint32_t>() && gp::is_fixed_size<double>() && !gp::is_fixed_size<std::string>());
  20. }
  21. };
  22. append_test dummy_sjuige443(new fixed_size_test{});