mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Update test
This commit is contained in:
commit
595902f8a0
@ -307,7 +307,7 @@ TEST(FPTest, FixedHandler) {
|
|||||||
EXPECT_THROW(handler().on_digit('0', 100, 100, 0, exp, false),
|
EXPECT_THROW(handler().on_digit('0', 100, 100, 0, exp, false),
|
||||||
assertion_failure);
|
assertion_failure);
|
||||||
namespace digits = fmt::detail::digits;
|
namespace digits = fmt::detail::digits;
|
||||||
EXPECT_EQ(handler(1).on_digit('0', 100, 10, 10, exp, false), digits::done);
|
EXPECT_EQ(handler(1).on_digit('0', 100, 10, 10, exp, false), digits::error);
|
||||||
// Check that divisor - error doesn't overflow.
|
// Check that divisor - error doesn't overflow.
|
||||||
EXPECT_EQ(handler(1).on_digit('0', 100, 10, 101, exp, false), digits::error);
|
EXPECT_EQ(handler(1).on_digit('0', 100, 10, 101, exp, false), digits::error);
|
||||||
// Check that 2 * error doesn't overflow.
|
// Check that 2 * error doesn't overflow.
|
||||||
|
Loading…
Reference in New Issue
Block a user