@@ -12,10 +12,10 @@ func TestSplitFirstLast(t *testing.T) {
12
12
ipfsStr := "/ipfs/QmPSQnBKM9g7BaUcZCvswUJVscQ1ipjmwxN5PXCjkp9EQ7"
13
13
14
14
for _ , x := range [][]string {
15
- [] string {ipStr , tcpStr , quicStr , ipfsStr },
16
- [] string {ipStr , tcpStr , ipfsStr },
17
- [] string {ipStr , tcpStr },
18
- [] string {ipStr },
15
+ {ipStr , tcpStr , quicStr , ipfsStr },
16
+ {ipStr , tcpStr , ipfsStr },
17
+ {ipStr , tcpStr },
18
+ {ipStr },
19
19
} {
20
20
addr := StringCast (strings .Join (x , "" ))
21
21
head , tail := SplitFirst (addr )
@@ -110,10 +110,10 @@ func TestSplitFunc(t *testing.T) {
110
110
ipfsStr := "/ipfs/QmPSQnBKM9g7BaUcZCvswUJVscQ1ipjmwxN5PXCjkp9EQ7"
111
111
112
112
for _ , x := range [][]string {
113
- [] string {ipStr , tcpStr , quicStr , ipfsStr },
114
- [] string {ipStr , tcpStr , ipfsStr },
115
- [] string {ipStr , tcpStr },
116
- [] string {ipStr },
113
+ {ipStr , tcpStr , quicStr , ipfsStr },
114
+ {ipStr , tcpStr , ipfsStr },
115
+ {ipStr , tcpStr },
116
+ {ipStr },
117
117
} {
118
118
addr := StringCast (strings .Join (x , "" ))
119
119
for i , cs := range x {
0 commit comments