Skip to content
Permalink
Browse files

add tests for dates with millisecond precision

note that despite inputs in various time zones, the tests
run in GMT
  • Loading branch information
alandekok committed Aug 21, 2019
1 parent ba436a2 commit eb42ae97fdc12129cb79b6e8bfb2ef0a3292f749
Showing with 7 additions and 0 deletions.
  1. +3 −0 src/tests/unit/dictionary
  2. +4 −0 src/tests/unit/radius_unit.txt
@@ -24,6 +24,9 @@ ATTRIBUTE Unit-Short 251 short
ATTRIBUTE Unit-Integer64 252 integer64
ATTRIBUTE Unit-Octets 253 octets

ATTRIBUTE Unit-TLV 254 tlv
ATTRIBUTE Unit-TLV-Milliseconds 254.1 date milliseconds

#
# Copied here for simplicity
#
@@ -61,3 +61,7 @@ data Event-Timestamp = "Jan 11 1970 00:00:00 GMT"

encode-pair -
data 37 06 00 0d 2f 00

# Can we parse RFC 3339 dates correctly?
attribute Unit-TLV-Milliseconds = "2019-08-21T07:40:31.123-04:00"
data Unit-TLV-Milliseconds = "2019-08-21T03:40:31.123Z"

0 comments on commit eb42ae9

Please sign in to comment.
You can’t perform that action at this time.