mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
208e1719ad
* Add test command to tinygo
17 lines
273 B
Go
17 lines
273 B
Go
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) {
|
|
}
|