diff options
Diffstat (limited to 'dhcpv4/option_string_test.go')
-rw-r--r-- | dhcpv4/option_string_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dhcpv4/option_string_test.go b/dhcpv4/option_string_test.go index 9778134..2b8e1e5 100644 --- a/dhcpv4/option_string_test.go +++ b/dhcpv4/option_string_test.go @@ -34,6 +34,9 @@ func TestParseOptHostName(t *testing.T) { m, _ = New() require.Equal(t, "", m.HostName()) + + m, _ = New(WithGeneric(OptionHostName, []byte{'t', 'e', 's', 't', 0})) + require.Equal(t, "test", m.HostName()) } func TestOptRootPath(t *testing.T) { |