Skip to content

Commit d03e9b3

Browse files
authored
Merge pull request #2781 from xushiwei/q
cl: TestTestgo: fix #2775
2 parents ad880f2 + b558754 commit d03e9b3

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

cl/_testgo/types/out.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"math/cmplx"
6+
)
7+
8+
var ToBe bool = false
9+
var MaxInt uint64 = 1<<64 - 1
10+
var z complex128 = cmplx.Sqrt(-5 + 12i)
11+
12+
func main() {
13+
fmt.Printf("Type: %T Value: %v\n", ToBe, ToBe)
14+
fmt.Printf("Type: %T Value: %v\n", MaxInt, MaxInt)
15+
fmt.Printf("Type: %T Value: %v\n", z, z)
16+
}

cl/compile_testdir_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ func TestTestxgo(t *testing.T) {
3434
cltest.FromDir(t, "", "./_testxgo")
3535
}
3636

37-
func _TestTestgo(t *testing.T) {
38-
cltest.FromDir(t, "types", "./_testgo")
37+
func TestTestgo(t *testing.T) {
38+
cltest.FromDir(t, "", "./_testgo")
3939
}
4040

4141
func TestTestc(t *testing.T) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/fsnotify/fsnotify v1.10.1
99
github.com/goccy/go-yaml v1.19.2
1010
github.com/goplus/cobra v1.10.7 //xgo:class
11-
github.com/goplus/gogen v1.23.2
11+
github.com/goplus/gogen v1.23.3
1212
github.com/goplus/lib v0.3.1
1313
github.com/goplus/mod v0.20.2
1414
github.com/qiniu/x v1.18.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM=
44
github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
55
github.com/goplus/cobra v1.10.7 h1:pdMf0tzzAQn8941Ac1m78SSeTMQaSKihy/ipvANbLnc=
66
github.com/goplus/cobra v1.10.7/go.mod h1:p4LhfNJDKEpiGjGiNn0crUXL5dUPA5DX2ztYpEJR34E=
7-
github.com/goplus/gogen v1.23.2 h1:4uOEkV22xl0b6Fr4vWqUXQ7h0CHEfDfbyLA/UtY9GOQ=
8-
github.com/goplus/gogen v1.23.2/go.mod h1:Y7ulYW3wonQ3d9er00b0uGFEV/IUZa6okWJZh892ACQ=
7+
github.com/goplus/gogen v1.23.3 h1:cyw16r8LYsqIeJUobTy/1mv9abUDxsR+ghh0dEZgaRw=
8+
github.com/goplus/gogen v1.23.3/go.mod h1:Y7ulYW3wonQ3d9er00b0uGFEV/IUZa6okWJZh892ACQ=
99
github.com/goplus/lib v0.3.1 h1:Xws4DBVvgOMu58awqB972wtvTacDbk3nqcbHjdx9KSg=
1010
github.com/goplus/lib v0.3.1/go.mod h1:SgJv3oPqLLHCu0gcL46ejOP3x7/2ry2Jtxu7ta32kp0=
1111
github.com/goplus/mod v0.20.2 h1:YX72E6AhhRLvlkVnI9cBK6PZvUwtge2hwROh7w9N6Yk=

0 commit comments

Comments
 (0)