Skip to content

Commit

Permalink
objectionary#2818 fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Feb 2, 2024
1 parent ccbf14b commit 0beb9c7
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOboolEOwhileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@ void dataizesComplexBooleanToggle() {
);
}

/**
* Testing loop over a tuple
*
* [] > complex-parent
* memory 0 > counter
* while. > @
* counter.as-int.lt 1
* [i] > complex-kid
* seq > @
* *
* at.
* * 0 1
* counter.as-int
* counter.write (counter.as-int.plus 1)
* counter.as-int
*/
@Test
void loopsOverTupleComplex() {
final Phi counter = new PhMethod(new ComplexParent(Phi.Φ), "counter");
Expand Down Expand Up @@ -247,7 +263,8 @@ private static final class Kid extends PhDefault {
}

/**
* Parent Phi.
* Complex Parent Phi.
*
* @since 1.0
*/
private static final class ComplexParent extends PhDefault {
Expand All @@ -268,20 +285,7 @@ private static final class ComplexParent extends PhDefault {
}

/**
* ComplexKid Phi.
*
* [] > complex-parent
* memory 0 > counter
* while. > @
* counter.as-int.lt 1
* [i] > complex-kid
* seq > @
* *
* at.
* * 0 1
* counter.as-int
* counter.write (counter.as-int.plus 1)
* counter.as-int
* Complex Kid Phi.
*
* @since 0.1
* @checkstyle TypeNameCheck (4 lines)
Expand Down

0 comments on commit 0beb9c7

Please sign in to comment.