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