mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
committed by
Ron Evans
parent
a3d1f1a514
commit
208e1719ad
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
Thing()
|
||||
fmt.Println("normal main")
|
||||
}
|
||||
|
||||
func Thing() {
|
||||
fmt.Println("THING")
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing" // This is the tinygo testing package
|
||||
)
|
||||
|
||||
func TestFail1(t *testing.T) {
|
||||
t.Error("TestFail1 failed because of stuff and things")
|
||||
}
|
||||
|
||||
func TestFail2(t *testing.T) {
|
||||
t.Error("TestFail2 failed for reasons")
|
||||
}
|
||||
|
||||
func TestPass(t *testing.T) {
|
||||
}
|
||||
Reference in New Issue
Block a user