Skip to content

Commit

Permalink
feat(#2682): passes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Dec 7, 2023
1 parent 237ccc5 commit 35f91d8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

import com.jcabi.xml.XML;
import com.jcabi.xml.XMLDocument;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
Expand All @@ -37,7 +36,6 @@
import org.eolang.maven.util.HmBase;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
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;
Expand All @@ -46,9 +44,6 @@
/**
* Test cases for {@link UnphiMojo}.
* @since 0.34.0
* @todo #2642:30min Create test packs for {@link UnphiMojo}. UnphiMojo seems to work correctly.
* We need to create yaml packs and enable {@link UnphiMojoTest#checksUnphiPacks(String, Path)}
* and make sure all of them are passed. Don't forget to remove the puzzle.
*/
class UnphiMojoTest {
@Test
Expand Down Expand Up @@ -111,21 +106,11 @@ void convertsToXmirAndBack(final String pack, @TempDir final Path temp) throws E
final FakeMaven maven = new FakeMaven(temp).execute(UnphiMojo.class);
maven.foreignTojos().add("name")
.withXmir(temp.resolve(String.format("target/%s/main.xmir", ParseMojo.DIR)));
System.out.println(
new TextOf(
temp.resolve("target/1-parse/main.xmir")
).asString()
);
final Path result = maven
.execute(OptimizeMojo.class)
.execute(PhiMojo.class)
.result()
.get(main);
System.out.println(
new TextOf(
temp.resolve("target/2-optimize/main.xmir")
).asString()
);
MatcherAssert.assertThat(
result.toFile().lastModified(),
Matchers.greaterThan(saved)
Expand Down

0 comments on commit 35f91d8

Please sign in to comment.