From 632f2785a9ea6127be7ddcef9053eb805d4cdfe6 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 24 Feb 2022 01:48:02 +0000 Subject: [PATCH] Clarify section header --- test/unit_test/runtime/magnitude_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit_test/runtime/magnitude_test.cpp b/test/unit_test/runtime/magnitude_test.cpp index ff5e1ecf..3def404b 100644 --- a/test/unit_test/runtime/magnitude_test.cpp +++ b/test/unit_test/runtime/magnitude_test.cpp @@ -134,8 +134,10 @@ TEST_CASE("make_ratio performs prime factorization correctly") CHECK(as_magnitude() == as_magnitude<300>()); } - SECTION("Can support exp which would be large enough to cause overflow") + SECTION("Can handle prime factor which would be large enough to overflow int") { + // This was taken from a case which failed when we used `int` for our base to store prime numbers. + // The failure was due to a prime factor which is larger than 2^31. as_magnitude(); } }