Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 23, 2024
1 parent 81f8378 commit 41bec7b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions eo-maven-plugin/src/test/java/org/eolang/maven/PhiMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import com.yegor256.MktmpResolver;
import com.yegor256.farea.Farea;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Map;
Expand Down Expand Up @@ -103,8 +105,17 @@ void convertsObjectWithSystemType(@Mktmp final Path temp) throws Exception {
);
MatcherAssert.assertThat(
"the .phi file is generated",
temp.resolve("target/eo/phi/org/eolang/bytes.phi").toFile().exists(),
Matchers.is(true)
new String(
Files.readAllBytes(
temp.resolve("target/eo/phi/org/eolang/bytes.phi")
),
StandardCharsets.UTF_8
),
Matchers.allOf(
Matchers.containsString("α0 ↦ Φ.org.eolang.bytes("),
Matchers.containsString("α0 ↦ ⟦ Δ ⤍ 01- ⟧"),
Matchers.containsString("yes ↦ ξ.eq(")
)
);
}

Expand Down

0 comments on commit 41bec7b

Please sign in to comment.