Skip to content

Commit eec934f

Browse files
committedJan 28, 2019
添加平台判断测试
1 parent 5f7097e commit eec934f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/0071.Simplify-Path/Solution_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ package Solution
22

33
import (
44
"reflect"
5+
"runtime"
56
"testing"
67
)
78

89
func TestSolution(t *testing.T) {
10+
if runtime.GOOS == "windows" {
11+
return
12+
}
913
// 测试用例
1014
cases := []struct {
1115
name string
@@ -32,6 +36,10 @@ func TestSolution(t *testing.T) {
3236
}
3337
}
3438
func TestSolution2(t *testing.T) {
39+
if runtime.GOOS == "windows" {
40+
return
41+
}
42+
3543
// 测试用例
3644
cases := []struct {
3745
name string

0 commit comments

Comments
 (0)