ae691ada79
I've decided instead to release a minimum viable product for v0.7.0 and get some feedback from the community, and most importantly some motivation as well to be able to keep working on magnetico as it currently feels like a Sisyphean where the development seem to never going to end...
24 lines
576 B
Go
24 lines
576 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/Wessie/appdirs"
|
|
)
|
|
|
|
func TestAppdirs(t *testing.T) {
|
|
var expected, returned string
|
|
|
|
returned = appdirs.UserDataDir("magneticod", "", "", false)
|
|
expected = appdirs.ExpandUser("~/.local/share/magneticod")
|
|
if returned != expected {
|
|
t.Errorf("UserDataDir returned an unexpected value! `%s`", returned)
|
|
}
|
|
|
|
returned = appdirs.UserCacheDir("magneticod", "", "", true)
|
|
expected = appdirs.ExpandUser("~/.cache/magneticod")
|
|
if returned != expected {
|
|
t.Errorf("UserCacheDir returned an unexpected value! `%s`", returned)
|
|
}
|
|
}
|