fix llgo test unit test
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package bar
|
||||
|
||||
func Bar() int {
|
||||
return 2
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package bar
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestBar(t *testing.T) {
|
||||
if Bar() != 2 {
|
||||
t.Fatal("Bar() != 2")
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package foo
|
||||
|
||||
func Foo() int {
|
||||
return 1
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package foo
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestFoo(t *testing.T) {
|
||||
if Foo() != 1 {
|
||||
t.Fatal("Foo() != 1")
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/_demo/runtest/bar"
|
||||
"github.com/goplus/llgo/_demo/runtest/foo"
|
||||
)
|
||||
|
||||
func Zoo() int {
|
||||
return 3
|
||||
}
|
||||
|
||||
func main() {
|
||||
println("foo.Foo()", foo.Foo())
|
||||
println("bar.Bar()", bar.Bar())
|
||||
println("Zoo()", Zoo())
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestZoo(t *testing.T) {
|
||||
if Zoo() != 3 {
|
||||
t.Fatal("Zoo() != 3")
|
||||
}
|
||||
}
|
||||
|
||||
func TestFalse(t *testing.T) {
|
||||
// t.Fatal("false")
|
||||
}
|
||||
Reference in New Issue
Block a user