Skip to content

Commit

Permalink
refactor tests for EONumber
Browse files Browse the repository at this point in the history
  • Loading branch information
asmirnov-backend committed Jan 25, 2025
1 parent cccff19 commit 2a9b19d
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 528 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.eolang.Attr;
import org.eolang.BytesOf;
import org.eolang.Data;
import org.eolang.Dataized;
import org.eolang.Expect;
import org.eolang.PhDefault;
import org.eolang.Phi;
Expand All @@ -53,10 +52,7 @@ public Phi lambda() {
0,
new Data.ToPhi(
new BytesOf(
Expect.at(this, Attr.RHO)
.that(phi -> new Dataized(phi).take(Long.class))
.otherwise("must be a number")
.it()
new Expect.Number(Expect.at(this, Attr.RHO)).it().longValue()
).take()
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.eolang.Atom;
import org.eolang.Attr;
import org.eolang.Data;
import org.eolang.Dataized;
import org.eolang.Expect;
import org.eolang.PhDefault;
import org.eolang.Phi;
Expand All @@ -49,10 +48,7 @@ public final class EOnumber$EOfloor extends PhDefault implements Atom {
@Override
public Phi lambda() {
return new Data.ToPhi(
Expect.at(this, Attr.RHO)
.that(phi -> new Dataized(phi).take(Long.class))
.otherwise("must be a number")
.it()
new Expect.Number(Expect.at(this, Attr.RHO)).it().longValue()
);
}
}
68 changes: 0 additions & 68 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOnumber$EOas_i64Test.java

This file was deleted.

96 changes: 0 additions & 96 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOnumber$EOdivTest.java

This file was deleted.

68 changes: 0 additions & 68 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOnumber$EOfloorTest.java

This file was deleted.

96 changes: 0 additions & 96 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOnumber$EOgtTest.java

This file was deleted.

Loading

0 comments on commit 2a9b19d

Please sign in to comment.