Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Mar 28, 2024
2 parents 82b5710 + 50e0522 commit e7e56f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,18 @@
import org.hamcrest.io.FileMatchers;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;

/**
* Test case for {@link OptimizeMojo}.
* @since 0.1
* @todo #2931:30min Enable the test {@link OptimizeMojoTest#checksPacks(String)}. The test was
* disabled because java generation (to-java.xsl) was changed. Need to change .yaml packs and
* enable the test.
*/
@SuppressWarnings({"PMD.AvoidDuplicateLiterals", "PMD.TooManyMethods"})
final class OptimizeMojoTest {

@ParameterizedTest
@Disabled
@ClasspathSource(value = "org/eolang/maven/packs/", glob = "**.yaml")
void checksPacks(final String pack) throws IOException {
final CheckPack check = new CheckPack(pack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ xsls:
- /org/eolang/maven/pre/to-java.xsl
tests:
- /program/errors[count(*)=0]
- //java[contains(text(), 'Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_1 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_1_1 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_1_1_1_base = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), 'Phi ret = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_1 = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_1_1 = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_1_1_1_base = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_1_1_1 = new PhMethod(ret_1_1_1_base, "empty");')]
- //java[contains(text(), ' Phi ret_2 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_2_1 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_2_1_1_base = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_2 = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_2_1 = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_2_1_1_base = Phi.Φ.take("org").take("eolang").take("tuple");')]
- //java[contains(text(), ' Phi ret_2_1_1 = new PhMethod(ret_2_1_1_base, "empty");')]
- //java[contains(text(), ' Phi ret_2_base = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get();')]
- //java[contains(text(), ' Phi ret_2 = new PhMethod(ret_2_base, "empty");')]
eo: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > foo
Expand Down

2 comments on commit e7e56f0

@0pdd
Copy link

@0pdd 0pdd commented on e7e56f0 Mar 28, 2024

Choose a reason for hiding this comment

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

Puzzle 2931-aac31418 disappeared from eo-maven-plugin/src/test/java/org/eolang/maven/OptimizeMojoTest.java), that's why I closed #2999. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

@0pdd
Copy link

@0pdd 0pdd commented on e7e56f0 Mar 28, 2024

Choose a reason for hiding this comment

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

Puzzle 2931-86a23c6e discovered in eo-runtime/src/test/java/org/eolang/UniverseDefaultTest.java) and submitted as #3015. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.