Skip to content

Commit

Permalink
Update TestLoad to reflect change to *State.Load for error
Browse files Browse the repository at this point in the history
Missed this in 07fbd24.
  • Loading branch information
zombiezen committed Jan 10, 2025
1 parent b470720 commit 928e2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/lua/lua_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func TestLoad(t *testing.T) {
} else if got := err.Error(); !strings.Contains(got, message) {
t.Errorf("state.Load(...) = %v; want to contain %q", got, message)
}
if got, ok := state.ToString(-1); !strings.Contains(got, message) || !ok {
t.Errorf("state.ToString(-1) = %q, %t; want to contain %q", got, ok, message)
if got, want := state.Top(), 0; got != want {
t.Errorf("state.Top() = %d; want %d", got, want)
}
})
}
Expand Down

0 comments on commit 928e2d2

Please sign in to comment.