Skip to content

Commit

Permalink
update tests, fix error print bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhitena committed Oct 3, 2016
1 parent b60e8e5 commit f7e3d9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gophernotes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ func TestRun_QuickFix_evaluated_but_not_used(t *testing.T) {
noError(t, err)

codes := []string{
//`[]byte("")`,
//`make([]int, 0)`,
`[]byte("")`,
`make([]int, 0)`,
`1+1`,
//`func() {}`,
`func() {}`,
`(4 & (1 << 1))`,
`1`,
}
Expand Down
2 changes: 1 addition & 1 deletion internal/repl/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ func (s *Session) Eval(in string) (string, bytes.Buffer, error) {
if st.ExitStatus() == 2 {
debugf("got exit status 2, popping out last input")
s.restoreMainBody()
runErr = nil
}
}
}
errorf("%s", runErr.Error())
}

// Cleanup the session file.
Expand Down

0 comments on commit f7e3d9a

Please sign in to comment.