wa-lang.org/wazero@v1.0.2/internal/gojs/crypto_test.go (about) 1 package gojs_test 2 3 import ( 4 "testing" 5 6 "wa-lang.org/wazero" 7 "wa-lang.org/wazero/internal/testing/require" 8 ) 9 10 func Test_crypto(t *testing.T) { 11 t.Parallel() 12 13 stdout, stderr, err := compileAndRun(testCtx, "crypto", wazero.NewModuleConfig()) 14 15 require.Zero(t, stderr) 16 require.EqualError(t, err, `module "" closed with exit_code(0)`) 17 require.Equal(t, `7a0c9f9f0d 18 `, stdout) 19 }