Unmaintained - small 2015 project - Central system for determining what desktop background to have, based on the date.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
359 B

package main
import "testing"
func TestSaveLoadConfig(t *testing.T) {
cfgFilePath = "test_save-load-config.json"
//for i := 0; i < 5; i++ {
err := saveInitialConfig()
if err != nil {
t.Error("Error saving config:", err)
}
cfgLoaded, err := loadConfig()
if err != nil || cfgLoaded.Backgrounds == nil {
t.Error("Error loading config:", err)
}
}