mock: Fix tests
This commit is contained in:
parent
7e5a78fef7
commit
b026250cab
@ -8,16 +8,16 @@ func TestConfig(test *testing.T) {
|
||||
"multiple": []string { "item0", "item1" },
|
||||
"empty": []string { },
|
||||
}
|
||||
if correct, got := config.Get("single"), "aslkdjasd"; correct != got {
|
||||
if correct, got := "aslkdjasd", config.Get("single"); correct != got {
|
||||
test.Fatal("not equal:", got)
|
||||
}
|
||||
if correct, got := config.Get("multiple"), "item0"; correct != got {
|
||||
if correct, got := "item0", config.Get("multiple"); correct != got {
|
||||
test.Fatal("not equal:", got)
|
||||
}
|
||||
if correct, got := config.Get("empty"), ""; correct != got {
|
||||
if correct, got := "", config.Get("empty"); correct != got {
|
||||
test.Fatal("not equal:", got)
|
||||
}
|
||||
if correct, got := config.Get("non-existent"), ""; correct != got {
|
||||
if correct, got := "", config.Get("non-existent"); correct != got {
|
||||
test.Fatal("not equal:", got)
|
||||
}
|
||||
for index, value := range config.GetAll("single") {
|
||||
|
Loading…
Reference in New Issue
Block a user