aboutsummaryrefslogtreecommitdiff
path: root/cmd/hlang/run
diff options
context:
space:
mode:
authorXe <me@christine.website>2023-01-01 23:11:00 -0500
committerXe <me@christine.website>2023-01-01 23:11:00 -0500
commit4ab6f87505e29d112d0390a8af9a4540f73c8f28 (patch)
tree3dd048886e2652e83855d227b23d2eceb5f9f680 /cmd/hlang/run
parente763c835a35d0a52acb9d3fde6e37a4b260b2100 (diff)
downloadx-4ab6f87505e29d112d0390a8af9a4540f73c8f28.tar.xz
x-4ab6f87505e29d112d0390a8af9a4540f73c8f28.zip
cmd/hlang: test
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'cmd/hlang/run')
-rw-r--r--cmd/hlang/run/run_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/hlang/run/run_test.go b/cmd/hlang/run/run_test.go
index 5e2fdae..416a85f 100644
--- a/cmd/hlang/run/run_test.go
+++ b/cmd/hlang/run/run_test.go
@@ -8,6 +8,12 @@ import (
//go:embed testdata/h.wasm
var bin []byte
+func TestRun(t *testing.T) {
+ if _, err := Run(bin); err != nil {
+ t.Fatal(err)
+ }
+}
+
func BenchmarkRun(b *testing.B) {
for i := 0; i < b.N; i++ {
if _, err := Run(bin); err != nil {