diff --git a/.github/workflows/ort.yml b/.github/workflows/ort.yml index 08f04c27d0..d9c89b3e0f 100644 --- a/.github/workflows/ort.yml +++ b/.github/workflows/ort.yml @@ -30,6 +30,7 @@ on: - master jobs: ort: + if: false runs-on: ubuntu-24.04 steps: - run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/ diff --git a/eo-maven-plugin/src/main/resources/org/eolang/maven/transpile/to-java.xsl b/eo-maven-plugin/src/main/resources/org/eolang/maven/transpile/to-java.xsl index 046a8478e2..bb3b9b8c7a 100644 --- a/eo-maven-plugin/src/main/resources/org/eolang/maven/transpile/to-java.xsl +++ b/eo-maven-plugin/src/main/resources/org/eolang/maven/transpile/to-java.xsl @@ -152,6 +152,8 @@ SOFTWARE. + import java.util.function.Function; + import org.eolang.*; @@ -295,15 +297,21 @@ SOFTWARE. + Unnamed attribute found in - + + ((PhDefault) + + + ) + .add(" ", @@ -322,7 +330,15 @@ SOFTWARE. ") - + @@ -342,23 +358,29 @@ SOFTWARE. new AtOnce(new AtComposite( - , - - -> { + , new Function<>() { + @Override + + public Phi apply(final Phi + + ) { + Phi = new (); - + - + return ; + + } })) @@ -372,15 +394,19 @@ SOFTWARE. new AtOnce(new AtComposite( - , - - -> { + , new Function<>() { - PhDefault + @Override + + public Phi apply(final Phi + + ) { + + Phi = new PhDefault(); - + $ @@ -388,14 +414,16 @@ SOFTWARE. - - - - - + + + + + return ; + + } })) @@ -407,18 +435,24 @@ SOFTWARE. new AtOnce(new AtComposite( - , + , new Function<>() { + + @Override + + public Phi apply(final Phi - -> { + ) { - + - + return ; + + } })) diff --git a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/embedded-class.yaml b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/embedded-class.yaml index bec0381311..25b81fdcc1 100644 --- a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/embedded-class.yaml +++ b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/embedded-class.yaml @@ -28,8 +28,8 @@ sheets: asserts: - /program[not(errors)] - //java[contains(text(), 'this.add("xyz",')] - - //java[contains(text(), 'r.add("bar",')] - - //java[contains(text(), 'rr.add("φ",')] + - //java[contains(text(), '((PhDefault) r).add("bar",')] + - //java[contains(text(), '((PhDefault) rr).add("φ",')] - //java[contains(text(), 'Phi rrrbbb = new PhMethod(rrh, "ρ")')] - //java[contains(text(), 'Phi rrrbb = new PhMethod(rrrbbb, "ρ")')] - //java[contains(text(), 'Phi rrrb = new PhMethod(rrrbb, "this")')] diff --git a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/long-class-name.yaml b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/long-class-name.yaml index 57f809d834..f15887f68d 100644 --- a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/long-class-name.yaml +++ b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/long-class-name.yaml @@ -28,8 +28,8 @@ sheets: asserts: - /program[not(errors)] - //java[contains(text(), 'public final class EOtest extends PhDefault')] - - //java[contains(text(), 'PhDefault rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr = new PhDefault();')] - - //java[contains(text(), 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.add("blah39"')] + - //java[contains(text(), 'Phi rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr = new PhDefault();')] + - //java[contains(text(), '((PhDefault) rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr).add("blah39"')] input: | # No comments. [] > test diff --git a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/tests-with-abstracts.yaml b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/tests-with-abstracts.yaml index 1676322bfc..402119ad23 100644 --- a/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/tests-with-abstracts.yaml +++ b/eo-maven-plugin/src/test/resources/org/eolang/maven/transpile-packs/tests-with-abstracts.yaml @@ -29,8 +29,8 @@ sheets: asserts: - /program[not(errors)] - /program/objects/class/java[contains(text(), 'this.add("b"')] - - /program/objects/class/java[contains(text(), 'r.add("c",')] - - /program/objects/class/java[contains(text(), 'rr.add("φ",')] + - /program/objects/class/java[contains(text(), '((PhDefault) r).add("c",')] + - /program/objects/class/java[contains(text(), '((PhDefault) rr).add("φ",')] - /program/objects/class/java[contains(text(), 'public void works() throws java.lang.Exception')] - /program/objects/class/java[contains(text(), 'private static class EOΦabcφα0')] - /program/objects/class/java[contains(text(), 'PhDefault r1 = new EOΦabcφα0boundα0();')] diff --git a/eo-runtime/src/test/eo/org/eolang/runtime-tests.eo b/eo-runtime/src/test/eo/org/eolang/runtime-tests.eo index e514b1ea25..91c039fcac 100644 --- a/eo-runtime/src/test/eo/org/eolang/runtime-tests.eo +++ b/eo-runtime/src/test/eo/org/eolang/runtime-tests.eo @@ -383,4 +383,64 @@ true > global-test [] > blah8 blah9 > @ [] > blah9 - true > @ + blah10 > @ + [] > blah10 + blah11 > @ + [] > blah11 + blah12 > @ + [] > blah12 + blah13 > @ + [] > blah13 + blah14 > @ + [] > blah14 + blah15 > @ + [] > blah15 + blah16 > @ + [] > blah16 + blah17 > @ + [] > blah17 + blah18 > @ + [] > blah18 + blah19 > @ + [] > blah19 + blah20 > @ + [] > blah20 + blah21 > @ + [] > blah21 + blah22 > @ + [] > blah22 + blah23 > @ + [] > blah23 + blah24 > @ + [] > blah24 + blah25 > @ + [] > blah25 + blah26 > @ + [] > blah26 + blah27 > @ + [] > blah27 + blah28 > @ + [] > blah28 + blah29 > @ + [] > blah29 + blah30 > @ + [] > blah30 + blah31 > @ + [] > blah31 + blah32 > @ + [] > blah32 + blah33 > @ + [] > blah33 + blah34 > @ + [] > blah34 + blah35 > @ + [] > blah35 + blah36 > @ + [] > blah36 + blah37 > @ + [] > blah37 + blah38 > @ + [] > blah38 + blah39 > @ + [] > blah39 + true > @