Files
wazero/examples/allocation/tinygo/greet_test.go
Crypt Keeper b7b90e7dfd Adds allocation examples in Rust and TinyGo (#475)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-04-21 18:22:22 +08:00

19 lines
401 B
Go

package main
import (
"testing"
"github.com/tetratelabs/wazero/internal/testing/maintester"
"github.com/tetratelabs/wazero/internal/testing/require"
)
// Test_main ensures the following will work:
//
// go run greet.go wazero
func Test_main(t *testing.T) {
stdout, _ := maintester.TestMain(t, main, "greet", "wazero")
require.Equal(t, `wasm >> Hello, wazero!
go >> Hello, wazero!
`, stdout)
}