]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tests for negative numbers, too
authorAlan T. DeKok <aland@freeradius.org>
Tue, 14 Sep 2021 15:50:03 +0000 (11:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 14 Sep 2021 15:50:16 +0000 (11:50 -0400)
src/tests/unit/protocols/radius/time_delta.txt

index 5aa361397dc3028bad21aa70a76d95f4a0e310e1..a83b1d945970ea5fb1d4bf05111c58ec913a469a 100644 (file)
@@ -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