blob: e8594ac1fa88b75db8ff1c45392c08c0a663d857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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) {
}
|