mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
446 B
25 lines
446 B
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.Fatalf("TestFail2 failed for %v ", "reasons")
|
|
}
|
|
|
|
func TestFail3(t *testing.T) {
|
|
t.Fail()
|
|
t.Logf("TestFail3 failed for %v ", "reasons")
|
|
}
|
|
|
|
func TestPass(t *testing.T) {
|
|
t.Log("TestPass passed")
|
|
}
|
|
|
|
func BenchmarkNotImplemented(b *testing.B) {
|
|
}
|
|
|