forked from EvergreenCrypto/docker-finance
root: test: Random: assert multiple types
- Add test cases for multiple types - Rewrite to include new interface/impl - Fix assertion test to not exceed error boundary
This commit is contained in:
@@ -53,7 +53,8 @@ struct RandomInterface
|
||||
t_random generate_impl()
|
||||
{
|
||||
static_assert(
|
||||
std::is_same_v<t_random, uint32_t>, "Random interface has changed");
|
||||
::docker_finance::internal::type::is_real_integral<t_random>::value,
|
||||
"Random interface has changed");
|
||||
|
||||
return t_random{std::numeric_limits<t_random>::max()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user