Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Sep 2, 2024
2 parents 3a17a4c + 20ac878 commit 2a8d227
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ void removesAllAliases() {
);
}

@Test
void keepsPackage() {
MatcherAssert.assertThat(
"We expect that package is kept, even if the program doesn't have labels or opcodes",
new WithoutAliases(WithoutAliasesTest.program()).toXml(),
XhtmlMatchers.hasXPath("/program/metas/meta[head='package']")
);
}

@Test
void removesOnlyLabelAlias() {
MatcherAssert.assertThat(
Expand Down Expand Up @@ -117,6 +126,14 @@ private static XML program(final Directives... objects) {
new Directives()
.add("program")
.add("metas")
.append(
new Directives()
.add("meta")
.add("head").set("package").up()
.add("tail").set("org.eolang.opeo").up()
.add("part").set("org.eolang.opeo").up()
.up()
)
.append(WithoutAliasesTest.alias("org.eolang.jeo.label"))
.append(WithoutAliasesTest.alias("org.eolang.jeo.opcode"))
.up()
Expand Down

4 comments on commit 2a8d227

@0pdd
Copy link

@0pdd 0pdd commented on 2a8d227 Sep 2, 2024

Choose a reason for hiding this comment

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

Puzzle 229-f7413085 disappeared from src/main/java/org/eolang/opeo/ast/Constant.java), that's why I closed #275. 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 2a8d227 Sep 2, 2024

Choose a reason for hiding this comment

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

Puzzle 329-55257c31 disappeared from src/main/java/org/eolang/opeo/ast/StoreArray.java), that's why I closed #346. 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 2a8d227 Sep 2, 2024

Choose a reason for hiding this comment

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

Puzzle 404-a600311d disappeared from src/test/resources/agents/if.yaml), that's why I closed #408. 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 2a8d227 Sep 2, 2024

Choose a reason for hiding this comment

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

Puzzle 411-76dc7442 disappeared from src/main/java/org/eolang/opeo/storage/LowerOpcodesStorage.java), that's why I closed #419. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

Please sign in to comment.