#
#  ENUM tests
#
#  src/tests/dict checks if the dictionaries can be parsed.
#  This file tests if the contents are OK.
#
proto radius
proto-dictionary radius
load-dictionary dictionary.test
fuzzer-out radius

encode-pair Unit-TLV = { Test-Enum-Integer64 = one }
match fe 0c 0c 0a 00 00 00 00 00 00 00 01

decode-pair -
match Unit-TLV = { Test-Enum-Integer64 = ::one }

#
#  Same enum names, different attribute.
#
encode-pair Unit-TLV = { Test-Enum-Integer32 = one }
match fe 08 0d 06 00 00 00 01

#  This value is looked up as an an enum!
decode-pair -
match Unit-TLV = { Test-Enum-Integer32 = ::one }

count
match 12
