From: Alan T. DeKok Date: Tue, 14 Sep 2021 15:50:03 +0000 (-0400) Subject: tests for negative numbers, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f104a3140f9a9c327fce2cf3548aaf021ee58f4f;p=thirdparty%2Ffreeradius-server.git tests for negative numbers, too --- diff --git a/src/tests/unit/protocols/radius/time_delta.txt b/src/tests/unit/protocols/radius/time_delta.txt index 5aa361397dc..a83b1d94597 100644 --- a/src/tests/unit/protocols/radius/time_delta.txt +++ b/src/tests/unit/protocols/radius/time_delta.txt @@ -48,5 +48,14 @@ match fe 06 04 04 00 41 decode-pair - match Unit-TLV = { Delta-MSec-uint16 = 65 } +encode-pair Unit-TLV.Delta-MSec-int16 = -32768 +match fe 06 06 04 80 00 + +decode-pair - +match Unit-TLV = { Delta-MSec-int16 = -32768 } + +attribute Unit-TLV.Delta-MSec-int16 = -32768 +match Unit-TLV.Delta-MSec-int16 = -32768 + count -match 22 +match 28