Files
wazero/examples/multiple-results/multiple-results_test.go
Takeshi Yoneda 02c23d55db Disallow direct call of host functions (#723)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-07-30 09:33:20 +08:00

20 lines
448 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 multiple-results.go
func Test_main(t *testing.T) {
stdout, _ := maintester.TestMain(t, main, "multiple-results")
require.Equal(t, `result-offset/wasm: age=37
multi-value/wasm: age=37
multi-value/imported_host: age=37
`, stdout)
}