From: Alan T. DeKok Date: Sat, 4 Dec 2021 23:36:52 +0000 (-0500) Subject: add underflow for uint32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e3436f5836f881c0dcfea5dd3d446145745ccc;p=thirdparty%2Ffreeradius-server.git add underflow for uint32 --- diff --git a/src/tests/unit/calc.txt b/src/tests/unit/calc.txt index c07f5af2d40..330e75a120e 100644 --- a/src/tests/unit/calc.txt +++ b/src/tests/unit/calc.txt @@ -29,6 +29,9 @@ match 64 calc uint8 5 - uint8 16 -> uint8 match Value overflows/underflows when calculating answer for uint8 +calc uint32 5 - uint32 16 -> uint32 +match Value overflows/underflows when calculating answer for uint32 + # # Intermediate values are too large for destination, but the # resulting value can fit. @@ -139,4 +142,4 @@ calc string "2" += string "test" match 2test count -match 56 +match 58