Skip to content

Commit

Permalink
fix(#3529): utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Nov 25, 2024
1 parent 20eb349 commit 81a5f6c
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions eo-maven-plugin/src/test/java/org/eolang/maven/UnphiMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
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;
Expand Down Expand Up @@ -67,18 +68,13 @@ void convertsPhiToXmir(@Mktmp final Path temp) throws Exception {
f -> {
f.clean();
f.files().file("target/eo/phi/foo.phi").write(
"{ ⟦ a ↦ Φ.org.eolang.bytes ( α0 ↦ ⟦ Δ ⤍ 00- ⟧ ) ⟧}".getBytes()
"{ ⟦ a ↦ Φ.org.eolang.bytes ( α0 ↦ ⟦ Δ ⤍ 00- ⟧ ) ⟧}".getBytes(
StandardCharsets.UTF_8
)
);
f.build()
.plugins()
.append(
"org.eolang",
"eo-maven-plugin",
System.getProperty(
"eo.version",
"1.0-SNAPSHOT"
)
)
.appendItself()
.execution()
.phase("initialize")
.goals("phi-to-xmir");
Expand All @@ -104,18 +100,11 @@ void failsOnBrokenPhiSyntax(@Mktmp final Path temp) throws Exception {
f -> {
f.clean();
f.files().file("target/eo/phi/foo.phi").write(
"{ ⟦ a ↦ Φ.org.eolang.bytes ( Δ ⤍ 00- ) ⟧}".getBytes()
"{ ⟦ a ↦ Φ.org.eolang.bytes ( Δ ⤍ 00- ) ⟧}".getBytes(StandardCharsets.UTF_8)
);
f.build()
.plugins()
.append(
"org.eolang",
"eo-maven-plugin",
System.getProperty(
"eo.version",
"1.0-SNAPSHOT"
)
)
.appendItself()
.execution()
.phase("initialize")
.goals("phi-to-xmir");
Expand Down

0 comments on commit 81a5f6c

Please sign in to comment.