mirror of
https://github.com/spf13/viper
synced 2024-11-05 04:37:02 +00:00
test: fix test to actually assert something
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
8d1fb59230
commit
995db99714
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil" //nolint:staticcheck
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
|
@ -892,8 +892,10 @@ func TestAliasesOfAliases(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRecursiveAliases(t *testing.T) {
|
func TestRecursiveAliases(t *testing.T) {
|
||||||
|
Set("baz", "bat")
|
||||||
RegisterAlias("Baz", "Roo")
|
RegisterAlias("Baz", "Roo")
|
||||||
RegisterAlias("Roo", "baz")
|
RegisterAlias("Roo", "baz")
|
||||||
|
assert.Equal(t, "bat", Get("Baz"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUnmarshal(t *testing.T) {
|
func TestUnmarshal(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue