github.com/hy3/cuto@v0.9.8-0.20160830082821-aa6652f877b7/util/path_test.go (about)

     1  // Copyright 2015 unirita Inc.
     2  // Created 2015/04/10 shanxia
     3  
     4  package util
     5  
     6  import (
     7  	"testing"
     8  )
     9  
    10  func TestGetRootPath_正常にRootPathが取得できる(t *testing.T) {
    11  	s := GetRootPath()
    12  	if len(s) == 0 {
    13  		t.Error("取得失敗。")
    14  	}
    15  }
    16  
    17  func TestGetCurrentPath_正常にCurrentPathが取得できる(t *testing.T) {
    18  	s := GetCurrentPath()
    19  	if len(s) == 0 {
    20  		t.Error("取得失敗。")
    21  	}
    22  }