Skip to content

Egot batch show useful data when solutions fail - #82

Open
Eroui wants to merge 1 commit into
masterfrom
bugfix/batch-rte
Open

Egot batch show useful data when solutions fail#82
Eroui wants to merge 1 commit into
masterfrom
bugfix/batch-rte

Conversation

@Eroui

@Eroui Eroui commented Apr 17, 2021

Copy link
Copy Markdown
Collaborator
  • Show useful information when the execution of brute force solution or main solution fails with a runtime error.
  • Run the brute force solution first to be able to print the input and expected output in case of main solution failure.

Example of executions:

Brute force solution exits with -1

$ egor batch r
Running test 1
Could not run the brute solution
Input: 
4

Main solution throws Exception

$ egor batch r
Running test 1
Could not run the solution
Exception in thread "main" java.lang.RuntimeException: Something went wrong!
        at Main.solve(Main.java:13)
        at Main.main(Main.java:19)
Input: 
4

Expected: 
4

Fixes #80

@Eroui
Eroui requested a review from chermehdi April 17, 2021 01:00

@chermehdi chermehdi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Bump the fix number in the Egor version before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Egor batch create doesn't show useful results when main solution Crashes

2 participants