github.com/jchauncey/draft@v0.3.0/pkg/draft/draftpath/home_windows_test.go (about) 1 package draftpath 2 3 import ( 4 "testing" 5 ) 6 7 func TestDraftHome(t *testing.T) { 8 ph := Home("r:\\") 9 isEq := func(t *testing.T, a, b string) { 10 if a != b { 11 t.Errorf("Expected %q, got %q", b, a) 12 } 13 } 14 15 isEq(t, ph.String(), "r:\\") 16 isEq(t, ph.Packs(), "r:\\packs") 17 isEq(t, ph.Plugins(), "r:\\plugins") 18 }