Skip to content

Commit 4d35e05

Browse files
committed
Fixed autotests
1 parent f13b172 commit 4d35e05

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/FixMath_Autotests.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ namespace FixMathPrivate {
3838
static_assert((d + e).getNI() == 11, "test fail");
3939

4040
// Two's complement peculiar additions
41-
static_assert(SFixAuto<-128>().getNI() == 7);
42-
static_assert(SFixAuto<127>().getNI() == 7);
43-
static_assert(SFixAuto<128>().getNI() == 8);
41+
static_assert(SFixAuto<-128>().getNI() == 7, "test fail");
42+
static_assert(SFixAuto<127>().getNI() == 7, "test fail");
43+
static_assert(SFixAuto<128>().getNI() == 8, "test fail");
4444

4545
constexpr auto s = UFix<7,0>(-128);
46-
static_assert((s+s).getNI() == 8);
46+
static_assert((s+s).getNI() == 8, "test fail");
4747

4848
// the point of this block is to ascertain that addtion does not overflow, internally, where the internal_type of the operands is too small to hold the result
4949
constexpr auto large = UFix<32,0>(1LL << 31, true);

0 commit comments

Comments
 (0)