Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Oct 23, 2023
1 parent ac456c8 commit c2f160e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion x/build/_testdata/hello/hello.expect
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import fmt "fmt"
import "fmt"

func main() {
fmt.Println("Go+")
Expand Down
2 changes: 1 addition & 1 deletion x/build/_testdata/multi/multi.expect
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import fmt "fmt"
import "fmt"

type BaseClass struct {
x int
Expand Down
2 changes: 1 addition & 1 deletion x/build/_testdata/pkg/pkg.expect
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pkg

import fmt "fmt"
import "fmt"

func Hello() {
fmt.Println("Go+")
Expand Down
46 changes: 23 additions & 23 deletions x/build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ println "Go+"
`
var expect = `package main
import fmt "fmt"
import "fmt"
func main() {
fmt.Println("Go+")
Expand All @@ -108,7 +108,7 @@ func TestGox(t *testing.T) {
println "Go+"
`, `package main
import fmt "fmt"
import "fmt"
type Rect struct {
}
Expand All @@ -130,7 +130,7 @@ type Buffer struct {
println "Go+"
`, `package main
import fmt "fmt"
import "fmt"
type Buffer struct {
buf []byte
Expand All @@ -157,7 +157,7 @@ type Buffer struct {
println "Go+"
`, `package main
import fmt "fmt"
import "fmt"
type Buffer struct {
buf []byte
Expand All @@ -183,8 +183,8 @@ println "Go+"
`, `package main
import (
fmt "fmt"
bytes "bytes"
"fmt"
"bytes"
)
type Rect struct {
Expand All @@ -208,8 +208,8 @@ println "Go+"
`, `package main
import (
fmt "fmt"
bytes "bytes"
"fmt"
"bytes"
)
type Rect struct {
Expand All @@ -232,9 +232,9 @@ println a+1/2r
`, `package main
import (
fmt "fmt"
ng "github.com/goplus/gop/builtin/ng"
big "math/big"
"fmt"
"github.com/goplus/gop/builtin/ng"
"math/big"
)
func main() {
Expand All @@ -256,9 +256,9 @@ for line <- lines(r) {
`, `package main
import (
fmt "fmt"
iox "github.com/goplus/gop/builtin/iox"
io "io"
"fmt"
"github.com/goplus/gop/builtin/iox"
"io"
)
var r io.Reader
Expand Down Expand Up @@ -299,9 +299,9 @@ println addSafe("10", "abc")
`, `package main
import (
fmt "fmt"
strconv "strconv"
errors "github.com/qiniu/x/errors"
"fmt"
"strconv"
"github.com/qiniu/x/errors"
)
func add(x string, y string) (int, error) {
Expand Down Expand Up @@ -367,8 +367,8 @@ func TestSpx(t *testing.T) {
gopClTestEx(t, "main.tspx", `println "hi"`, `package main
import (
fmt "fmt"
spx "github.com/goplus/gop/cl/internal/spx"
"fmt"
"github.com/goplus/gop/cl/internal/spx"
)
type MyGame struct {
Expand All @@ -385,8 +385,8 @@ func main() {
gopClTestEx(t, "Cat.tspx", `println "hi"`, `package main
import (
fmt "fmt"
spx "github.com/goplus/gop/cl/internal/spx"
"fmt"
"github.com/goplus/gop/cl/internal/spx"
)
type Cat struct {
Expand Down Expand Up @@ -441,7 +441,7 @@ func TestFromTestdata(t *testing.T) {
func TestFS(t *testing.T) {
var expect = []byte(`package main
import fmt "fmt"
import "fmt"
func main() {
fmt.Println("Go+")
Expand All @@ -459,7 +459,7 @@ func main() {
func TestAst(t *testing.T) {
var expect = []byte(`package main
import fmt "fmt"
import "fmt"
func main() {
fmt.Println("Go+")
Expand Down

0 comments on commit c2f160e

Please sign in to comment.