Skip to content

Commit

Permalink
Add compiler error reported in 991 by @vrqq
Browse files Browse the repository at this point in the history
  • Loading branch information
John McFarlane committed Dec 22, 2023
1 parent d9e3fee commit d6db50e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/scaled_integer/rounding/rounding_scaled_integer.cpp
Expand Up @@ -82,4 +82,12 @@ namespace {
static_assert(identical(dest_type{0}, dest_type{source_type{.75}}), "");
static_assert(identical(dest_type{1}, dest_type{source_type{1.}}), "");
}

TEST(rounding_scaled_integer, 991)
{
using DecX = cnl::scaled_integer<cnl::rounding_integer<long long>, cnl::power<-1, 100>>;
DecX num1 = 10.554;
DecX num2 = 10.545;
std::cout<<num1<<" "<<num2<<std::endl;
}
}

0 comments on commit d6db50e

Please sign in to comment.