Skip to content

Commit 65ba1eb

Browse files
committed
fix puzzle 4538
1 parent 4cb0d56 commit 65ba1eb

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

eo-runtime/src/main/java/org/eolang/Dataized.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ public byte[] take() {
8383
raw.addAll(ex.messages());
8484
Collections.reverse(raw);
8585
final Phi enc = ex.enclosure();
86-
if ("go.to.token.jump".equals(enc.forma())) {
86+
System.out.println("____________________________+");
87+
System.out.println("enc.forma() = " + enc.forma());
88+
System.out.println("____________________________+");
89+
//if ("go.to.token.jump".equals(enc.forma())) {
90+
//if ("go.to.token.jump".equals(enc.forma()) || String.format("%s.go.to.token.jump", PhPackage.GLOBAL).equals(enc.forma())) {
91+
if (enc.forma().endsWith("go.to.token.jump")) {
8792
throw new EOerror.ExError(enc);
8893
}
89-
if (String.format("%s.string", PhPackage.GLOBAL).equals(enc.forma())) {
94+
if (String.format("%s.org.eolang.string", PhPackage.GLOBAL).equals(enc.forma())) {
9095
raw.add(
9196
String.format(
9297
"\"%s\"",

eo-runtime/src/test/java/org/eolang/DataizedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
@Execution(ExecutionMode.SAME_THREAD)
3737
final class DataizedTest {
38-
@Disabled
38+
//@Disabled
3939
@Test
4040
@SuppressWarnings({"PMD.UnitTestContainsTooManyAsserts", "PMD.UnnecessaryLocalRule"})
4141
void logsAllLocationsWithPhSafe() {
@@ -92,7 +92,7 @@ void failsWhenError() {
9292
);
9393
}
9494

95-
@Disabled
95+
//@Disabled
9696
@Test
9797
@SuppressWarnings({"PMD.UnitTestContainsTooManyAsserts", "PMD.UnnecessaryLocalRule"})
9898
void doesNotLogGoToTokenJump() {

0 commit comments

Comments
 (0)