mock: Fix tests

This commit is contained in:
Sasha Koshka 2025-01-30 15:27:23 -05:00
parent 7e5a78fef7
commit b026250cab

View File

@ -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") {