Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the tests: deliversCleanOutput and executesJvmFullRun #2631

Merged
merged 12 commits into from
Nov 29, 2023

Conversation

c71n93
Copy link
Member

@c71n93 c71n93 commented Nov 26, 2023

Closes #2591


PR-Codex overview

This PR focuses on enabling and fixing two tests in the MainTest class.

Detailed summary

  • Import of java.util.Arrays added in MainTest.java.
  • @Disabled annotations removed from deliversCleanOutput() and executesJvmFullRun() methods in MainTest.java.
  • Type casting added when logging an app dataization result in the run() method in Main.java.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@c71n93
Copy link
Member Author

c71n93 commented Nov 27, 2023

@maxonfjvipon could you check this one, please?

Matchers.containsString("\uD835\uDD3B( "),
Matchers.containsString("string")
)
Matchers.containsString("Error at \"EOorg.EOeolang.EOstring#as-bytes\" attribute")
Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 I think the main goal of the test - emulate the launch of the EO program via console.
After your changes we got the situation where we launch it and get an error. I believe it's wrong.
It would be better to change something in MainTest.exec() method call so we would not get an error.

Copy link
Member Author

Choose a reason for hiding this comment

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

@maxonfjvipon done. Could you check, please?

Copy link
Member

@maxonfjvipon maxonfjvipon left a comment

Choose a reason for hiding this comment

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

@c71n93 well done! Just one little comment from my side

}
Main.LOGGER.info(
String.format(
"%n---%n%s",
new Dataized(app).take().toString()
Arrays.toString(new Dataized(app).take())
Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 let's add a puzzle here so we won't forget to make up with some type casting here

Copy link
Member Author

Choose a reason for hiding this comment

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

@maxonfjvipon done. Could you check, please?

@@ -172,6 +171,9 @@ private static boolean parse(final String opt) throws IOException {
* Run this opts.
* @param opts The opts left
* @throws Exception If fails
* @todo #2591:60min Make type casting when logging an app dataization result. The cast is
* necessary in this expression {@code new Data set(app).take()} in order to correctly
Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 I didn't really get what the expression in the {@code ...} means

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a code snippet.

Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 I see but what new Data set(app) means?

Copy link
Member Author

Choose a reason for hiding this comment

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

@maxonfjvipon It is an expression, that needs to be casted to an appropriate type.

Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 is it a valid Java code?

Copy link
Member

Choose a reason for hiding this comment

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

@c71n93 maybe you meant Dataized instead of Data set?

Copy link
Member Author

Choose a reason for hiding this comment

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

@maxonfjvipon Oh, yeah, didn't notice the mistake, thank you

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@maxonfjvipon maxonfjvipon left a comment

Choose a reason for hiding this comment

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

@c71n93 LGTM! Thanks

@c71n93
Copy link
Member Author

c71n93 commented Nov 28, 2023

@yegor256 could you check this one, please?

@yegor256
Copy link
Member

@rultor merge

@rultor
Copy link
Contributor

rultor commented Nov 29, 2023

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit fd370f6 into objectionary:master Nov 29, 2023
12 checks passed
@rultor
Copy link
Contributor

rultor commented Nov 29, 2023

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 24min)

@c71n93 c71n93 deleted the 2591-enable-tests branch March 20, 2024 14:21
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.

MainTest.java:41-44: Enable the tests: {@link...
4 participants