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.
 
 

31 lines
618 B

#include "gp/algorithms/tmp_manip.hpp"
#include "test_scaffold.h"
struct max_size_test : public test_scaffold {
uint32_t seed;
max_size_test() {
name = __FILE__ ":1";
}
virtual int run() {
return gp::max_size<uint32_t, uint64_t, int8_t>() != 8;
}
};
append_test dummy_lfhz1r43(new max_size_test{});
struct fixed_size_test : public test_scaffold {
uint32_t seed;
fixed_size_test() {
name = __FILE__ ":1";
}
virtual int run() {
return !(gp::is_fixed_size<uint32_t>() && gp::is_fixed_size<double>() && !gp::is_fixed_size<std::string>());
}
};
append_test dummy_sjuige443(new fixed_size_test{});