zeek/testing/btest/Baseline/bifs.enum_names/out
Arne Welzel a00cef9920 enum_names: Support naming types with a string
In his ZeekWeek 2022 presentation, @stevesmoot mentioned that he had a
difficult time looking up enum names when all he had was a string
naming the type.

Add support to enum_names() to transparently lookup the type if a string
is provided. This is similar in how record_fields() behaves when being
passed a string.
2022-10-21 20:09:48 +02:00

33 lines
349 B
Text

### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
with types
{
Monochrome::WHITE,
Monochrome::BLACK
}
{
RED,
GREEN,
PURPLE,
BLUE
}
{
Monochrome::WHITE,
Monochrome::BLACK
}
with strings
{
RED,
GREEN,
PURPLE,
BLUE
}
{
RED,
GREEN,
PURPLE,
BLUE
}
{
Monochrome::WHITE,
Monochrome::BLACK
}