Added test to TestFieldConvert for conversion="watts"

This commit is contained in:
Pekka Panula 2017-01-02 10:03:32 +02:00
parent 42519b5c2a
commit 0aceeda6b8
1 changed files with 2 additions and 0 deletions

View File

@ -637,6 +637,8 @@ func TestFieldConvert(t *testing.T) {
{[]byte("abcd"), "ipaddr", "97.98.99.100"},
{"abcd", "ipaddr", "97.98.99.100"},
{[]byte("abcdefghijklmnop"), "ipaddr", "6162:6364:6566:6768:696a:6b6c:6d6e:6f70"},
{[]byte("123W"), "watts", int64(123)},
{"321W", "watts", int64(321)},
}
for _, tc := range testTable {