feat: uint8 test

This commit is contained in:
Calin Martinconi 2024-07-30 23:02:00 +03:00 committed by Márk Sági-Kazár
parent 42ae6b5215
commit 4b88551a27
1 changed files with 1 additions and 0 deletions

View File

@ -2039,6 +2039,7 @@ func TestMergeConfig(t *testing.T) {
assert.Equal(t, 37890, v.GetInt("hello.pop")) assert.Equal(t, 37890, v.GetInt("hello.pop"))
assert.Equal(t, int32(37890), v.GetInt32("hello.pop")) assert.Equal(t, int32(37890), v.GetInt32("hello.pop"))
assert.Equal(t, int64(765432101234567), v.GetInt64("hello.largenum")) assert.Equal(t, int64(765432101234567), v.GetInt64("hello.largenum"))
assert.Equal(t, uint8(2), v.GetUint8("hello.pop"))
assert.Equal(t, uint(37890), v.GetUint("hello.pop")) assert.Equal(t, uint(37890), v.GetUint("hello.pop"))
assert.Equal(t, uint16(37890), v.GetUint16("hello.pop")) assert.Equal(t, uint16(37890), v.GetUint16("hello.pop"))
assert.Equal(t, uint32(37890), v.GetUint32("hello.pop")) assert.Equal(t, uint32(37890), v.GetUint32("hello.pop"))