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

MainTest.java:43-48: Enable the tests. Tests {@link... #2723

Closed
0pdd opened this issue Dec 22, 2023 · 3 comments · Fixed by #2788
Closed

MainTest.java:43-48: Enable the tests. Tests {@link... #2723

0pdd opened this issue Dec 22, 2023 · 3 comments · Fixed by #2788
Assignees
Milestone

Comments

@0pdd
Copy link

0pdd commented Dec 22, 2023

The puzzle 2718-833aa636 from #2718 has to be resolved:

* @todo #2718:30min Enable the tests. Tests {@link MainTest#deliversCleanOutput()} and
* {@link MainTest#executesJvmFullRun()} were disabled because they execute "org.eolang.io.stdout"
* object that accepts "string". But arguments after "org.eolang.io.stdout" are stored into "tuple"
* and are being passed as "tuple" object. And here we get the situation where
* "stdout" accepts "tuple" and fails. We need to enable the test by finding object that accepts
* "tuple" as the first argument, or make a custom one.

The puzzle was created by rultor on 22-Dec-23.

Estimate: 30 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@c71n93
Copy link
Member

c71n93 commented Jan 15, 2024

@maxonfjvipon what did you mean here: "arguments after "org.eolang.io.stdout" are stored into "tuple"". What sort of arguments?

@maxonfjvipon
Copy link
Member

@c71n93 if you check run method in Main.java class you'll see that first argument is used as program to run, for example org.eolang.io.stdout, but all other arguments are used as parameters for such program and to pass to to the program - they are stored into tuple.

For example in deliversCleanOutput test we do MainTest.exec("org.eolang.io.stdout", "Hello!"),
Here org.eolang.io.stdout is our program, "Hello!" is a parameter. "Hello!" will be stored to tuple and then the tuple will be passed to stdout.

But stdout does not accept tuple, it accepts string

@c71n93
Copy link
Member

c71n93 commented Jan 15, 2024

@maxonfjvipon could you assign me, please?

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

Successfully merging a pull request may close this issue.

3 participants