Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
wast: Added test argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
Spriithy committed Dec 22, 2017
1 parent b7d4566 commit 32235de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wast/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import (
var wastFile = flag.String("wast-file", "", "the wast file to test")

func TestScanner(t *testing.T) {
if *wastFile == "" {
t.Errorf("error: no input file")
}

s := NewScanner(*wastFile)
if len(s.Errors) > 0 {
fmt.Println(s.Errors[0])
Expand Down

0 comments on commit 32235de

Please sign in to comment.