diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tinygotest/main.go | 14 | ||||
-rw-r--r-- | tests/tinygotest/main_test.go | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/tinygotest/main.go b/tests/tinygotest/main.go new file mode 100644 index 000000000..84ed97000 --- /dev/null +++ b/tests/tinygotest/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "fmt" +) + +func main() { + Thing() + fmt.Println("normal main") +} + +func Thing() { + fmt.Println("THING") +} diff --git a/tests/tinygotest/main_test.go b/tests/tinygotest/main_test.go new file mode 100644 index 000000000..61ce28285 --- /dev/null +++ b/tests/tinygotest/main_test.go @@ -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) { +} |