提交 7f70a119 编写于 作者: 3 3dgen

Merge branch 'master' of https://gitee.com/wa-lang/wa

......@@ -24,8 +24,19 @@ ci-test-all:
go test ./...
@echo "== std test begin =="
go run main.go test binary
go run main.go test errors
go run main.go test fmt
go run main.go test image
go run main.go test image/bmp
go run main.go test image/color
go run main.go test io
go run main.go test math
go run main.go test os
go run main.go test regexp
go run main.go test strconv
go run main.go test unicode
go run main.go test unicode/utf8
@echo "== std ok =="
go run main.go hello.wa
......
......@@ -19,7 +19,10 @@ ci-test-all:
# snake
cd ./snake && make publish
go run ../main.go copy.wa
go run ../main.go eq.wa
go run ../main.go interface_named.wa
go run ../main.go strbytes.wa
go run ../main.go struct.wa
@echo "== _examples ok =="
......
......@@ -56,6 +56,6 @@ func ExampleRunCode_args() {
fmt.Print(string(output))
// Output:
// 0:aa
// 1:bb
// 0 : aa
// 1 : bb
}
......@@ -663,7 +663,7 @@ func (m *Module) EmitGenConvert(x Value, typ ValueType) (insts []wat.Inst) {
return
}
logger.Fatal("Todo: %T %T", x, typ)
logger.Fatalf("Todo: %+v %+v", x, typ)
return
}
......
......@@ -26,7 +26,7 @@ func TestErrorMethod {
func ExampleNew() {
err := New("emit macho dwarf: elf header corrupted")
if err != nil {
print(err)
print(err.Error())
}
// Output: emit macho dwarf: elf header corrupted
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册