Skip to content

Commit

Permalink
fix(objectionary#2864): added test pack for unphi mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Feb 6, 2024
1 parent 6ea26b8 commit 638c611
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ void convertsToXmirAndBack(final String pack, @TempDir final Path temp) throws E

@ParameterizedTest
@CsvSource({"true", "false"})
void convertsValidXmirAndParsableEO(
final boolean reversed,
@TempDir final Path temp
) throws Exception {
void convertsValidXmirAndParsableEO(final boolean reversed, @TempDir final Path temp)
throws Exception {
final Map<String, Path> map = new FakeMaven(temp)
.withProgram(
"# This is the default 64+ symbols comment in front of named abstract object.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# @todo #2864:30min Enable phi test pack. Current test pack is disabled because it fails on
# UnphiMojoTest#convertsToXmirAndBack because our Phi grammar (Phi.g4) does not support XI without
# dispatch (see line 77). We need to resolve it and enable test pack.
skip: true
eo: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > prints-itself
assert-that > @
length.
as-phi $
$.greater-than 0
phi: |
{
prints-itself ↦ ⟦
φ ↦ Φ.org.eolang.assert-that(
α0 ↦ Φ.org.eolang.as-phi(
α0 ↦ ξ
).length,
α1 ↦ ξ.greater-than(
α0 ↦ Φ.org.eolang.int(
α0 ↦ Φ.org.eolang.bytes(
Δ ⤍ 00-00-00-00-00-00-00-00
)
)
)
)
}

0 comments on commit 638c611

Please sign in to comment.