compiler: add go test command
This commit is contained in:
9
_demo/runtest/bar/bar_test.go
Normal file
9
_demo/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