Skip to content

Commit

Permalink
winzozz...
Browse files Browse the repository at this point in the history
  • Loading branch information
odino committed Sep 18, 2019
1 parent 6048024 commit 17fbb5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions util/util_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package util

import (
"os"
"testing"
)

Expand All @@ -11,10 +12,10 @@ func TestUnaliasPath(t *testing.T) {
expected string
}{
{"test", map[string]string{}, "test"},
{"test/sample.abs", map[string]string{}, "test/sample.abs"},
{"test/sample.abs", map[string]string{"test": "path"}, "path/sample.abs"},
{"test", map[string]string{"test": "path"}, "path/index.abs"},
{"./test", map[string]string{"test": "path"}, "./test"},
{"test" + string(os.PathSeparator) + "sample.abs", map[string]string{}, "test" + string(os.PathSeparator) + "sample.abs"},
{"test" + string(os.PathSeparator) + "sample.abs", map[string]string{"test": "path"}, "path" + string(os.PathSeparator) + "sample.abs"},
{"test", map[string]string{"test": "path"}, "path" + string(os.PathSeparator) + "index.abs"},
{"." + string(os.PathSeparator) + "test", map[string]string{"test": "path"}, "." + string(os.PathSeparator) + "test"},
}

for _, tt := range tests {
Expand Down

0 comments on commit 17fbb5d

Please sign in to comment.