Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Feb 6, 2025
1 parent 2e0a420 commit b7c3380
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gnovm/pkg/test/filetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ func (opts *TestOptions) runFiletest(filename string, source []byte) (string, er
// The Error directive (and many others) will have one trailing newline,
// which is not in the output - so add it there.
match(errDirective, result.Error+"\n")
} else {
} else if result.Output != "" {
outputDirective := dirs.First(DirectiveOutput)
if outputDirective == nil {
return "", fmt.Errorf("unexpected output: \n%s", result.Output)
}
} else {
err = m.CheckEmpty()
if err != nil {
return "", fmt.Errorf("machine not empty after main: %w", err)
Expand Down
3 changes: 3 additions & 0 deletions gnovm/tests/files/addressable_5.gno
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ func main() {
le := &binary.LittleEndian
println(&le.AppendUint16(b, 0)[0])
}

// Output:
// &(0 <databyte> uint8)
5 changes: 3 additions & 2 deletions gnovm/tests/files/type_alias.gno
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import "gno.land/p/demo/uassert"
type TestingT = uassert.TestingT

func main() {
println(TestingT)
println("ok")
}

// No need for output; not panicking is passing.
// Output:
// ok
2 changes: 2 additions & 0 deletions gnovm/tests/files/types/eql_0f49.gno
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func main() {

}

// Output:
// true
// true
// true
// true
Expand Down

0 comments on commit b7c3380

Please sign in to comment.