mirror of
https://github.com/spf13/viper
synced 2024-12-22 03:27:03 +00:00
feat: uint8 test
This commit is contained in:
parent
42ae6b5215
commit
4b88551a27
1 changed files with 1 additions and 0 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue