From 680222c5bc53eebe184f931be123bcb2b0acd422 Mon Sep 17 00:00:00 2001 From: rultor Date: Wed, 5 Jul 2023 21:13:52 +0000 Subject: [PATCH] New release for eo-0.29.6 --- objects/org/eolang/as-phi.eo | 4 +- objects/org/eolang/bool.eo | 11 +- objects/org/eolang/bytes.eo | 20 +--- objects/org/eolang/cage.eo | 4 +- objects/org/eolang/cti.eo | 4 +- objects/org/eolang/error.eo | 4 +- objects/org/eolang/float.eo | 13 +-- objects/org/eolang/goto.eo | 4 +- objects/org/eolang/heap.eo | 4 +- objects/org/eolang/int.eo | 13 +-- objects/org/eolang/io/stdin.eo | 4 +- objects/org/eolang/io/stdout.eo | 4 +- objects/org/eolang/memory.eo | 4 +- objects/org/eolang/nan.eo | 4 +- objects/org/eolang/negative-infinity.eo | 106 +++++++++----------- objects/org/eolang/nop.eo | 4 +- objects/org/eolang/positive-infinity.eo | 106 +++++++++----------- objects/org/eolang/ram.eo | 4 +- objects/org/eolang/rust.eo | 4 +- objects/org/eolang/seq.eo | 4 +- objects/org/eolang/string.eo | 9 +- objects/org/eolang/switch.eo | 4 +- objects/org/eolang/try.eo | 4 +- objects/org/eolang/tuple.eo | 4 +- py/__pycache__/deps.cpython-38.pyc | Bin 790 -> 790 bytes tests/org/eolang/as-phi-tests.eo | 2 +- tests/org/eolang/bool-tests.eo | 13 +-- tests/org/eolang/bytes-tests.eo | 54 ++++++---- tests/org/eolang/cage-tests.eo | 2 +- tests/org/eolang/cti-test.eo | 2 +- tests/org/eolang/float-tests.eo | 8 +- tests/org/eolang/goto-tests.eo | 2 +- tests/org/eolang/heap-tests.eo | 2 +- tests/org/eolang/int-tests.eo | 28 +----- tests/org/eolang/io/stdout-tests.eo | 2 +- tests/org/eolang/memory-tests.eo | 2 +- tests/org/eolang/nan-tests.eo | 2 +- tests/org/eolang/negative-infinity-tests.eo | 2 +- tests/org/eolang/nop-tests.eo | 2 +- tests/org/eolang/positive-infinity-tests.eo | 2 +- tests/org/eolang/ram-tests.eo | 2 +- tests/org/eolang/runtime-tests.eo | 21 +++- tests/org/eolang/rust-tests.eo | 31 +++--- tests/org/eolang/seq-tests.eo | 2 +- tests/org/eolang/string-tests.eo | 8 +- tests/org/eolang/switch-tests.eo | 2 +- tests/org/eolang/try-tests.eo | 2 +- tests/org/eolang/tuple-tests.eo | 2 +- tests/org/eolang/unit-tests.eo | 2 +- 49 files changed, 236 insertions(+), 307 deletions(-) diff --git a/objects/org/eolang/as-phi.eo b/objects/org/eolang/as-phi.eo index d1336f17..71e85c83 100644 --- a/objects/org/eolang/as-phi.eo +++ b/objects/org/eolang/as-phi.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Turns an object into a φ-term [x] > as-phi /string diff --git a/objects/org/eolang/bool.eo b/objects/org/eolang/bool.eo index c49763a2..ec8a9c5b 100644 --- a/objects/org/eolang/bool.eo +++ b/objects/org/eolang/bool.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > bool # Equal to another object? @@ -61,10 +61,3 @@ ^ 01- 00- - - # Converts this to hash - [] > as-hash - if. > @ - ^ - 1231 - 1237 diff --git a/objects/org/eolang/bytes.eo b/objects/org/eolang/bytes.eo index d7d5e2d2..c97f4133 100644 --- a/objects/org/eolang/bytes.eo +++ b/objects/org/eolang/bytes.eo @@ -20,13 +20,11 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.collections.bytes-as-array -+alias org.eolang.collections.list +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > bytes # Equals to another object @@ -78,20 +76,6 @@ [] > as-bytes ^ > @ - # Converts this to hash - [] > as-hash - reduced. > @ - list - bytes-as-array ^ - 1 - [a b] - plus. > @ - times. - 31 - a - as-int. - (0.as-bytes.and b).right 54 - # Concatenation of two byte sequences: # the current and the provided one, # as a new sequence diff --git a/objects/org/eolang/cage.eo b/objects/org/eolang/cage.eo index 137a26e1..64bd1720 100644 --- a/objects/org/eolang/cage.eo +++ b/objects/org/eolang/cage.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # This object is doing exactly the same as "memory", but allows # you to store objects, not only data. In other words, it doesn't diff --git a/objects/org/eolang/cti.eo b/objects/org/eolang/cti.eo index 1dcda787..b0c0ed26 100644 --- a/objects/org/eolang/cti.eo +++ b/objects/org/eolang/cti.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Compile Time Instruction. # Make possible to highlight deprecated methods. diff --git a/objects/org/eolang/error.eo b/objects/org/eolang/error.eo index 43b2c3f8..ebb6088f 100644 --- a/objects/org/eolang/error.eo +++ b/objects/org/eolang/error.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # This object must be used in order to terminate the program # due to an error. Just make a copy of it with any encapsulated object. diff --git a/objects/org/eolang/float.eo b/objects/org/eolang/float.eo index 81b9160c..a87e84dc 100644 --- a/objects/org/eolang/float.eo +++ b/objects/org/eolang/float.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > float # Tests that $ = x @@ -103,12 +103,3 @@ # Converts this to bytes [] > as-bytes /bytes - - # Converts this to hash - [] > as-hash - as-int. > @ - xor. - as-bytes - right. - as-bytes - 32 diff --git a/objects/org/eolang/goto.eo b/objects/org/eolang/goto.eo index 67343a4f..33b9ab92 100644 --- a/objects/org/eolang/goto.eo +++ b/objects/org/eolang/goto.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Non-conditional forward and backward jumps. Returns TRUE # if the backward jump happened, an object provided to diff --git a/objects/org/eolang/heap.eo b/objects/org/eolang/heap.eo index 0f60a406..22b4cfe4 100644 --- a/objects/org/eolang/heap.eo +++ b/objects/org/eolang/heap.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Emulation of random-access memory (RAM). [size] > heap diff --git a/objects/org/eolang/int.eo b/objects/org/eolang/int.eo index 73c04387..079a35b6 100644 --- a/objects/org/eolang/int.eo +++ b/objects/org/eolang/int.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > int # Tests that $ = x @@ -101,12 +101,3 @@ # Converts this to bytes [] > as-bytes /bytes - - # Converts this to hash - [] > as-hash - as-int. > @ - xor. - as-bytes - right. - as-bytes - 32 diff --git a/objects/org/eolang/io/stdin.eo b/objects/org/eolang/io/stdin.eo index da1b98fd..e51cd311 100644 --- a/objects/org/eolang/io/stdin.eo +++ b/objects/org/eolang/io/stdin.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > stdin # Consumes only one line from the standard input stream diff --git a/objects/org/eolang/io/stdout.eo b/objects/org/eolang/io/stdout.eo index 74c6e21c..e27f0a32 100644 --- a/objects/org/eolang/io/stdout.eo +++ b/objects/org/eolang/io/stdout.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [text] > stdout /bool diff --git a/objects/org/eolang/memory.eo b/objects/org/eolang/memory.eo index c2ac94d8..c1dc77f4 100644 --- a/objects/org/eolang/memory.eo +++ b/objects/org/eolang/memory.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Storage of data in memory. [] > memory /? diff --git a/objects/org/eolang/nan.eo b/objects/org/eolang/nan.eo index 67ad1c89..989591bd 100644 --- a/objects/org/eolang/nan.eo +++ b/objects/org/eolang/nan.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Not a number [] > nan diff --git a/objects/org/eolang/negative-infinity.eo b/objects/org/eolang/negative-infinity.eo index b1d51508..e120ab6b 100644 --- a/objects/org/eolang/negative-infinity.eo +++ b/objects/org/eolang/negative-infinity.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Negative infinity [] > negative-infinity @@ -98,31 +98,30 @@ is-nan-or-zero terms.at index > term! nan - [] - if. > @ - acc.gt 0.0 - times-rec - * - if. - is-term-gt-zero term > term-gt-zero - acc - neg-inf - index.plus 1 > next-index - terms - infs - is-nan-or-zero - is-term-gt-zero - times-rec - * - if. - term-gt-zero - acc - pos-inf - next-index - terms - infs - is-nan-or-zero - is-term-gt-zero + if. + acc.gt 0.0 + times-rec + * + if. + is-term-gt-zero term > term-gt-zero + acc + neg-inf + index.plus 1 > next-index + terms + infs + is-nan-or-zero + is-term-gt-zero + times-rec + * + if. + term-gt-zero + acc + pos-inf + next-index + terms + infs + is-nan-or-zero + is-term-gt-zero if. > @ eq. @@ -193,10 +192,6 @@ nan ^ - # Negation of $ - [] > neg - positive-infinity > @ - # Difference between $ and x [x...] > minus ^.as-bytes > neg-inf-as-bytes! @@ -285,31 +280,30 @@ is-nan-or-infinite terms.at index > term! nan - [] - if. > @ - acc.gt 0.0 - div-rec - * - if. - is-term-gte-zero term > term-gte-zero - acc - neg-inf - index.plus 1 > next-index - terms - infs - is-nan-or-infinite - is-term-gte-zero - div-rec - * - if. - term-gte-zero - acc - pos-inf - next-index - terms - infs - is-nan-or-infinite - is-term-gte-zero + if. + acc.gt 0.0 + div-rec + * + if. + is-term-gte-zero term > term-gte-zero + acc + neg-inf + index.plus 1 > next-index + terms + infs + is-nan-or-infinite + is-term-gte-zero + div-rec + * + if. + term-gte-zero + acc + pos-inf + next-index + terms + infs + is-nan-or-infinite + is-term-gte-zero if. > @ eq. diff --git a/objects/org/eolang/nop.eo b/objects/org/eolang/nop.eo index b66369bf..2a1cdce7 100644 --- a/objects/org/eolang/nop.eo +++ b/objects/org/eolang/nop.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Object that always is TRUE [args...] > nop diff --git a/objects/org/eolang/positive-infinity.eo b/objects/org/eolang/positive-infinity.eo index 33c0d7ef..445b6e40 100644 --- a/objects/org/eolang/positive-infinity.eo +++ b/objects/org/eolang/positive-infinity.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Positive infinity [] > positive-infinity @@ -98,31 +98,30 @@ is-nan-or-zero terms.at index > term! nan - [] - if. > @ - acc.gt 0.0 - times-rec - * - if. - is-term-gt-zero term > term-gt-zero - acc - neg-inf - index.plus 1 > next-index - terms - infs - is-nan-or-zero - is-term-gt-zero - times-rec - * - if. - term-gt-zero - acc - pos-inf - next-index - terms - infs - is-nan-or-zero - is-term-gt-zero + if. + acc.gt 0.0 + times-rec + * + if. + is-term-gt-zero term > term-gt-zero + acc + neg-inf + index.plus 1 > next-index + terms + infs + is-nan-or-zero + is-term-gt-zero + times-rec + * + if. + term-gt-zero + acc + pos-inf + next-index + terms + infs + is-nan-or-zero + is-term-gt-zero if. > @ eq. @@ -193,10 +192,6 @@ nan ^ - # Negation of $ - [] > neg - negative-infinity > @ - # Difference between $ and x [x...] > minus ^.as-bytes > pos-inf-as-bytes! @@ -285,31 +280,30 @@ is-nan-or-infinite terms.at index > term! nan - [] - if. > @ - acc.gt 0.0 - div-rec - * - if. - is-term-gte-zero term > term-gte-zero - acc - neg-inf - index.plus 1 > next-index - terms - infs - is-nan-or-infinite - is-term-gte-zero - div-rec - * - if. - term-gte-zero - acc - pos-inf - next-index - terms - infs - is-nan-or-infinite - is-term-gte-zero + if. + acc.gt 0.0 + div-rec + * + if. + is-term-gte-zero term > term-gte-zero + acc + neg-inf + index.plus 1 > next-index + terms + infs + is-nan-or-infinite + is-term-gte-zero + div-rec + * + if. + term-gte-zero + acc + pos-inf + next-index + terms + infs + is-nan-or-infinite + is-term-gte-zero if. > @ eq. diff --git a/objects/org/eolang/ram.eo b/objects/org/eolang/ram.eo index 6b25339e..ae890ed8 100644 --- a/objects/org/eolang/ram.eo +++ b/objects/org/eolang/ram.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Random-access memory (RAM). [size] > ram diff --git a/objects/org/eolang/rust.eo b/objects/org/eolang/rust.eo index 53e218c1..d8477528 100644 --- a/objects/org/eolang/rust.eo +++ b/objects/org/eolang/rust.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [code params] > rust /int diff --git a/objects/org/eolang/seq.eo b/objects/org/eolang/seq.eo index 15db447f..5f16cbfc 100644 --- a/objects/org/eolang/seq.eo +++ b/objects/org/eolang/seq.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Dataizes all provided steps and returns the # last one. diff --git a/objects/org/eolang/string.eo b/objects/org/eolang/string.eo index 2ff43304..8ed268a1 100644 --- a/objects/org/eolang/string.eo +++ b/objects/org/eolang/string.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > string # Is true if both objects are equal @@ -39,10 +39,5 @@ # Turn it into bytes. [] > as-bytes /bytes - # Converts this to hash - [] > as-hash - as-hash. > @ - ^.as-bytes - # Takes a piece of a string as another string [start len] > slice /string diff --git a/objects/org/eolang/switch.eo b/objects/org/eolang/switch.eo index 9f4df1c6..bd2b2227 100644 --- a/objects/org/eolang/switch.eo +++ b/objects/org/eolang/switch.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Allow to choose right options according to cases conditions. # Parameter cases is the array of two dimensional array, which diff --git a/objects/org/eolang/try.eo b/objects/org/eolang/try.eo index a6d5fedd..9e997542 100644 --- a/objects/org/eolang/try.eo +++ b/objects/org/eolang/try.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 # Try, catch and finally. This object helps catch errors created by the # object 'error'. When being dataized, such objects will crash the problem. diff --git a/objects/org/eolang/tuple.eo b/objects/org/eolang/tuple.eo index 1def7c1a..351b462f 100644 --- a/objects/org/eolang/tuple.eo +++ b/objects/org/eolang/tuple.eo @@ -23,8 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.29.5 -+version 0.29.5 ++rt jvm org.eolang:eo-runtime:0.29.6 ++version 0.29.6 [] > tuple # Obtain the length of the array. diff --git a/py/__pycache__/deps.cpython-38.pyc b/py/__pycache__/deps.cpython-38.pyc index 2fa0518e27ca058fc98e43756caf067f56efac1e..27c451b1dae17ce8a4a61bddefdda08b4e097ade 100644 GIT binary patch delta 20 acmbQnHjRxtl$V!_0SLa{S-O#%n;8Hw#032S delta 20 acmbQnHjRxtl$V!_0SKnLE!oJ;%?to4n*;^` diff --git a/tests/org/eolang/as-phi-tests.eo b/tests/org/eolang/as-phi-tests.eo index 3aaf31c2..379f24e6 100644 --- a/tests/org/eolang/as-phi-tests.eo +++ b/tests/org/eolang/as-phi-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > prints-itself assert-that > @ diff --git a/tests/org/eolang/bool-tests.eo b/tests/org/eolang/bool-tests.eo index 7241fa61..0e5231f1 100644 --- a/tests/org/eolang/bool-tests.eo +++ b/tests/org/eolang/bool-tests.eo @@ -28,7 +28,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > compares-two-bools assert-that > @ @@ -171,17 +171,6 @@ TRUE $.equal-to TRUE -[] > hash-equals-the-value - assert-that > @ - and. - eq. - 1231 - TRUE.as-hash - eq. - 1237 - FALSE.as-hash - $.equal-to TRUE - [] > last-while-dataization-object memory 0 > x assert-that > @ diff --git a/tests/org/eolang/bytes-tests.eo b/tests/org/eolang/bytes-tests.eo index ac3a3eaf..9e3db90c 100644 --- a/tests/org/eolang/bytes-tests.eo +++ b/tests/org/eolang/bytes-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > takes-part-of-bytes assert-that > @ @@ -374,17 +374,6 @@ $.equal-to "hello world" -[] > bytes-hashes-equals - assert-that > @ - 05-5E-78.as-hash - $.equal-to - 05-5E-78.as-hash - -[] > bytes-as-hash-value - assert-that > @ - 01.as-hash - $.equal-to 1 - [] > xor-as-int assert-that > @ (2397719729.as-bytes.xor (4294967295.as-bytes)).as-int @@ -445,9 +434,38 @@ ((-4294967296).as-bytes.or (1.as-bytes)).as-int $.equal-to -4294967295 -[] > bytes-hashes-remain-same - assert-that > @ - 01-02-03-04.as-hash - $.equal-to - 923521 - +[] > as-string-is-transparent + 68-65-6C-6C-6F > b + nop > @ + assert-that + b.as-string.as-bytes.< + $.is + $.equal-to + b.< + +[] > as-int-is-transparent + 489.as-bytes > b + nop > @ + assert-that + b.as-int.as-bytes.< + $.is + $.equal-to + b.< + +[] > as-float-is-transparent + 33.0.as-bytes > b + nop > @ + assert-that + b.as-float.as-bytes.< + $.is + $.equal-to + b.< + +[] > as-bool-is-transparent + TRUE.as-bytes > b + nop > @ + assert-that + b.as-bool.as-bytes.< + $.is + $.equal-to + b.< diff --git a/tests/org/eolang/cage-tests.eo b/tests/org/eolang/cage-tests.eo index 087470cb..b3707e22 100644 --- a/tests/org/eolang/cage-tests.eo +++ b/tests/org/eolang/cage-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > writes-into-cage [z] > a diff --git a/tests/org/eolang/cti-test.eo b/tests/org/eolang/cti-test.eo index cf4fc8c6..0d25ba69 100644 --- a/tests/org/eolang/cti-test.eo +++ b/tests/org/eolang/cti-test.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > just-prints-warning assert-that > @ diff --git a/tests/org/eolang/float-tests.eo b/tests/org/eolang/float-tests.eo index affbebda..b61ee29b 100644 --- a/tests/org/eolang/float-tests.eo +++ b/tests/org/eolang/float-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.29.5 ++version 0.29.6 [] > less-true assert-that > @ @@ -496,11 +496,5 @@ 3.1415926.as-bytes $.equal-to 3.1415926 -[] > similar-values-have-similar-hash - assert-that > @ - (3.1415926).as-hash - $.equal-to - (3.1415926).as-hash - [] > inline-float-computation ((4.0).plus (5.7)).eq (9.7) > @ diff --git a/tests/org/eolang/goto-tests.eo b/tests/org/eolang/goto-tests.eo index d257a063..9523a571 100644 --- a/tests/org/eolang/goto-tests.eo +++ b/tests/org/eolang/goto-tests.eo @@ -27,7 +27,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > goto-jumps-backwards memory 0 > i diff --git a/tests/org/eolang/heap-tests.eo b/tests/org/eolang/heap-tests.eo index 6e9a73f9..d2b42d6c 100644 --- a/tests/org/eolang/heap-tests.eo +++ b/tests/org/eolang/heap-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > allocates-and-uses "Hello, друг!" > txt diff --git a/tests/org/eolang/int-tests.eo b/tests/org/eolang/int-tests.eo index 65d2ea84..8ae57042 100644 --- a/tests/org/eolang/int-tests.eo +++ b/tests/org/eolang/int-tests.eo @@ -21,13 +21,11 @@ # SOFTWARE. +alias org.eolang.hamcrest.assert-that -+alias org.eolang.io.stdout -+alias org.eolang.txt.sprintf +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > less-true assert-that > @ @@ -285,30 +283,6 @@ 42.as-bytes $.equal-to 42 -[] > as-hash-equals-to-similar-values - assert-that > @ - 42.as-hash - $.equal-to - 42.as-hash - -# We can have collisions, so in this test just check if values not similar -[] > as-hash-have-different-hashes - seq > @ - stdout - sprintf - "%d %d %d\n" - 41.as-hash - 42.as-hash - 43.as-hash - TRUE - -[] > as-hash-not-equal - assert-that > @ - 41.as-hash - $.not - $.equal-to - 42.as-hash - [] > sum-up-several-arguments assert-that > @ 1982 diff --git a/tests/org/eolang/io/stdout-tests.eo b/tests/org/eolang/io/stdout-tests.eo index a1caceb2..15ab94f5 100644 --- a/tests/org/eolang/io/stdout-tests.eo +++ b/tests/org/eolang/io/stdout-tests.eo @@ -27,7 +27,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.29.5 ++version 0.29.6 [] > prints-string-to-console stdout > @ diff --git a/tests/org/eolang/memory-tests.eo b/tests/org/eolang/memory-tests.eo index 375d9f61..6b0e7418 100644 --- a/tests/org/eolang/memory-tests.eo +++ b/tests/org/eolang/memory-tests.eo @@ -27,7 +27,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > writes-into-memory memory 0 > x diff --git a/tests/org/eolang/nan-tests.eo b/tests/org/eolang/nan-tests.eo index 9a403685..d5ebd0cf 100644 --- a/tests/org/eolang/nan-tests.eo +++ b/tests/org/eolang/nan-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.29.5 ++version 0.29.6 [] > nan-not-eq-number assert-that > @ diff --git a/tests/org/eolang/negative-infinity-tests.eo b/tests/org/eolang/negative-infinity-tests.eo index bb4b312f..ca5f39f9 100644 --- a/tests/org/eolang/negative-infinity-tests.eo +++ b/tests/org/eolang/negative-infinity-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.29.5 ++version 0.29.6 # Equal to [] > negative-infinity-is-equal-to-one-div-zero diff --git a/tests/org/eolang/nop-tests.eo b/tests/org/eolang/nop-tests.eo index 7a3d7d5d..b0db36a4 100644 --- a/tests/org/eolang/nop-tests.eo +++ b/tests/org/eolang/nop-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > nop-is-true assert-that > @ diff --git a/tests/org/eolang/positive-infinity-tests.eo b/tests/org/eolang/positive-infinity-tests.eo index 31d09330..0596c96c 100644 --- a/tests/org/eolang/positive-infinity-tests.eo +++ b/tests/org/eolang/positive-infinity-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.29.5 ++version 0.29.6 # Equal to [] > positive-infinity-is-equal-to-one-div-zero diff --git a/tests/org/eolang/ram-tests.eo b/tests/org/eolang/ram-tests.eo index 2b1327f9..b18274bb 100644 --- a/tests/org/eolang/ram-tests.eo +++ b/tests/org/eolang/ram-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > writes-and-slice-ram ram 1024 > r diff --git a/tests/org/eolang/runtime-tests.eo b/tests/org/eolang/runtime-tests.eo index 387a00c7..40c787db 100644 --- a/tests/org/eolang/runtime-tests.eo +++ b/tests/org/eolang/runtime-tests.eo @@ -28,7 +28,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > understands-this-correctly [x] > a @@ -434,3 +434,22 @@ Hello """ $.equal-to "Hello\n\nHello" + +[] > correctly-handles-same-name-attrs + [f s] > calc + plus. > @ + f.next + s.next + assert-that > @ + calc + [] + [x] > build + x.plus 1 > @ + build (@.plus 1) > next + build 1 > @ + [] + [y] > build + y.plus 2 > @ + build (@.plus 2) > next + build 2 > @ + $.equal-to 12 diff --git a/tests/org/eolang/rust-tests.eo b/tests/org/eolang/rust-tests.eo index 0e09e814..9c3bc024 100644 --- a/tests/org/eolang/rust-tests.eo +++ b/tests/org/eolang/rust-tests.eo @@ -22,22 +22,21 @@ +alias org.eolang.hamcrest.assert-that +home https://github.com/objectionary/eo -+package org.eolang +tests -+version 0.29.5 ++package org.eolang ++version 0.29.6 [] > creates-object - nop > @ - QQ.rust > r - """ - pub fn foo() -> i32 { - println!("Hello world from rust"); - let i = 1234; - i - } - """ - * - assert-that - r - $.equal-to - 1234 + QQ.rust > r + """ + pub fn foo() -> i32 { + println!("Hello world from rust"); + let i = 1234; + i + } + """ + * + assert-that > @ + r + $.equal-to + 1234 \ No newline at end of file diff --git a/tests/org/eolang/seq-tests.eo b/tests/org/eolang/seq-tests.eo index 7ae461fa..e33fb290 100644 --- a/tests/org/eolang/seq-tests.eo +++ b/tests/org/eolang/seq-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > seq-single-dataization-float-less-than-test memory 0.0 > counter diff --git a/tests/org/eolang/string-tests.eo b/tests/org/eolang/string-tests.eo index f7f06c4f..532ab19b 100644 --- a/tests/org/eolang/string-tests.eo +++ b/tests/org/eolang/string-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > calculates-length-of-spaces-only assert-that > @ @@ -128,12 +128,6 @@ """ $.equal-to "a\n b\n c" -[] > similar-strings-generate-similar-hashes - assert-that > @ - "hello".as-hash - $.equal-to - "hello".as-hash - [] > compares-two-strings assert-that > @ eq. diff --git a/tests/org/eolang/switch-tests.eo b/tests/org/eolang/switch-tests.eo index aa6616a1..4b7bae21 100644 --- a/tests/org/eolang/switch-tests.eo +++ b/tests/org/eolang/switch-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > switch-simple-case assert-that > @ diff --git a/tests/org/eolang/try-tests.eo b/tests/org/eolang/try-tests.eo index 80513f43..8adc455e 100644 --- a/tests/org/eolang/try-tests.eo +++ b/tests/org/eolang/try-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > simple-division-by-zero try > @ diff --git a/tests/org/eolang/tuple-tests.eo b/tests/org/eolang/tuple-tests.eo index 5fc79411..e7696f17 100644 --- a/tests/org/eolang/tuple-tests.eo +++ b/tests/org/eolang/tuple-tests.eo @@ -26,7 +26,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > makes-tuple-through-special-syntax assert-that > @ diff --git a/tests/org/eolang/unit-tests.eo b/tests/org/eolang/unit-tests.eo index 4bed07cf..2d870c96 100644 --- a/tests/org/eolang/unit-tests.eo +++ b/tests/org/eolang/unit-tests.eo @@ -25,7 +25,7 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.29.5 ++version 0.29.6 [] > x TRUE > @