tinygo/tests/tinygotest/main_test.go
Carolyn Van Slyck 208e1719ad Add test command to tinygo (#243)
* Add test command to tinygo
2019-06-18 12:23:59 +02:00

16 строки
273 Б
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) {
}