fix llgo test unit test
This commit is contained in:
5
cl/_testgo/runtest/bar/bar.go
Normal file
5
cl/_testgo/runtest/bar/bar.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package bar
|
||||
|
||||
func Bar() int {
|
||||
return 2
|
||||
}
|
||||
9
cl/_testgo/runtest/bar/bar_test.go
Normal file
9
cl/_testgo/runtest/bar/bar_test.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package bar
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestBar(t *testing.T) {
|
||||
if Bar() != 2 {
|
||||
t.Fatal("Bar() != 2")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user