Skip to content

Commit

Permalink
#3069: Removed nop
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Apr 10, 2024
1 parent 6d4be87 commit 2ce87c2
Show file tree
Hide file tree
Showing 16 changed files with 91 additions and 162 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,56 +31,56 @@
[] > linear-integral-test
[x] > lin
x > @
nop > @
assert-that
integral
lin
1
10
$.close-to
49.5
0.0000001
TRUE > @
assert-that > res
integral
lin
1
10
$.close-to
49.5
0.0000001

[] > quadratic-integral-test
[x] > quadr
pow. > @
number x
2.0
nop > @
assert-that
integral
quadr
1
10
$.close-to
333.0
0.0000001
TRUE > @
assert-that > res
integral
quadr
1
10
$.close-to
333.0
0.0000001

[] > cube-integral-test
[x] > cube
pow. > @
number x
3.0
nop > @
assert-that
integral
cube
1
10
$.close-to
2499.75
0.0000001
TRUE > @
assert-that > res
integral
cube
1
10
$.close-to
2499.75
0.0000001

[] > logarithm-integral-test
nop > @
[x] > logarithm
ln. > @
number x
assert-that
integral
logarithm
1
10
$.close-to
14.026
0.0000001
TRUE > @
[x] > logarithm
ln. > @
number x
assert-that > res
integral
logarithm
1
10
$.close-to
14.026
0.0000001
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@

[] > two-random-numbers-with-const
random.pseudo > r!
nop > @
assert-that
r
$.equal-to r
TRUE > @
assert-that > res
r
$.equal-to r

[] > two-random-numbers-with-phi
(random 123).@ > r
Expand All @@ -71,18 +71,18 @@

[] > two-random-numbers-with-increment-with-const
random.pseudo.plus 3.1416 > r!
nop > @
assert-that
r
$.equal-to r
TRUE > @
assert-that > res
r
$.equal-to r

[] > two-random-numbers-with-increment
random.pseudo.plus 3.1416 > r
nop > @
if.
QQ.sys.uname.is-windows
nop
assert-that
r
$.not
$.equal-to r
TRUE > @
if. > res
QQ.sys.uname.is-windows
TRUE
assert-that
r
$.not
$.equal-to r
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(series *).max > @
[e]
e > @
nop
TRUE
$.equal-to "Can't get max of empty array"

[] > min-of-empty-array
Expand All @@ -44,7 +44,7 @@
(series *).min > @
[e]
e > @
nop
TRUE
$.equal-to "Can't get min of empty array"

[] > max-of-one-item-array
Expand Down
31 changes: 0 additions & 31 deletions eo-runtime/src/main/eo/org/eolang/nop.eo

This file was deleted.

2 changes: 1 addition & 1 deletion eo-runtime/src/test/eo/org/eolang/cage-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
cge.encage "Hello world"
[e]
cge.encage 10 > @
nop
TRUE
cge.eq 10

# Check that cage stack leads to error. Just prints the error
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/test/eo/org/eolang/float-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
24
[e]
e > @
nop
TRUE
66.5

# Test.
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/test/eo/org/eolang/int-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
2.div 0 > @
[e]
QQ.io.stdout e > @
nop
TRUE

# Checks that division by one returns the dividend.
[] > division-by-one
Expand Down
12 changes: 6 additions & 6 deletions eo-runtime/src/test/eo/org/eolang/memory-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
m.write 86124867.88 > @
[e]
QQ.io.stdout e > @
nop
TRUE

# Test.
[] > memory-is-strictly-typed-string-error-overflow
Expand All @@ -114,7 +114,7 @@
m.write "Much longer string!" > @
[e]
QQ.io.stdout e > @
nop
TRUE

# Test.
[] > memory-is-strictly-typed-int
Expand All @@ -125,7 +125,7 @@
m.write 2556 > @
[e]
e > @
nop
TRUE
2556

# Test.
Expand All @@ -137,7 +137,7 @@
m.write 82.22 > @
[e]
e > @
nop
TRUE
82.22

# Test.
Expand All @@ -149,7 +149,7 @@
m.write "Prot" > @
[e]
e > @
nop
TRUE
"Proto"

# Test.
Expand All @@ -160,7 +160,7 @@
m.write TRUE > @
[e]
e > @
nop
TRUE

# Test.
[] > memory-is-cleared-successfully
Expand Down
43 changes: 0 additions & 43 deletions eo-runtime/src/test/eo/org/eolang/nop-tests.eo

This file was deleted.

6 changes: 3 additions & 3 deletions eo-runtime/src/test/eo/org/eolang/rust-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
put > @
[e]
e > @
nop
TRUE
0
length.
message
Expand Down Expand Up @@ -237,7 +237,7 @@
insert > @
[e]
e > @
nop
TRUE
eq. > @
res.slice
0
Expand Down Expand Up @@ -337,7 +337,7 @@
err > @
[e]
e > @
nop
TRUE
eq. > @
slice.
res
Expand Down
6 changes: 3 additions & 3 deletions eo-runtime/src/test/eo/org/eolang/string-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
1
[e]
QQ.io.stdout e > @
nop
TRUE

# Test.
[] > slice-end-below-start
Expand All @@ -252,7 +252,7 @@
-1
[e]
QQ.io.stdout e > @
nop
TRUE

# Test.
[] > slice-end-greater-actual
Expand All @@ -264,4 +264,4 @@
5
[e]
QQ.io.stdout e > @
nop
TRUE
2 changes: 1 addition & 1 deletion eo-runtime/src/test/eo/org/eolang/switch-tests.eo
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
switch *
[ex]
QQ.io.stdout ex > @
nop
TRUE

# Test.
[] > switch-complex-case
Expand Down
Loading

0 comments on commit 2ce87c2

Please sign in to comment.