From 425e44e9777cf9340be6f0b9afd46a00855c3335 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 10 Feb 2025 18:57:25 +0300 Subject: [PATCH] 0.51.3 --- make/jvm/pom.xml | 2 +- objects/org/eolang/bytes.eo | 100 +++++----- objects/org/eolang/cti.eo | 2 +- objects/org/eolang/dataized.eo | 2 +- objects/org/eolang/error.eo | 5 +- objects/org/eolang/false.eo | 3 +- objects/org/eolang/fs/dir.eo | 4 +- objects/org/eolang/fs/file.eo | 5 +- objects/org/eolang/fs/path.eo | 29 ++- objects/org/eolang/fs/tmpdir.eo | 3 +- objects/org/eolang/go.eo | 3 +- objects/org/eolang/i16.eo | 4 +- objects/org/eolang/i32.eo | 4 +- objects/org/eolang/i64.eo | 4 +- objects/org/eolang/io/bytes-as-input.eo | 2 +- objects/org/eolang/io/console.eo | 2 +- objects/org/eolang/io/dead-input.eo | 2 +- objects/org/eolang/io/dead-output.eo | 2 +- objects/org/eolang/io/input-length.eo | 2 +- objects/org/eolang/io/malloc-as-output.eo | 2 +- objects/org/eolang/io/stdin.eo | 3 +- objects/org/eolang/io/stdout.eo | 2 +- objects/org/eolang/io/tee-input.eo | 2 +- objects/org/eolang/malloc.eo | 5 +- objects/org/eolang/math/angle.eo | 4 +- objects/org/eolang/math/e.eo | 3 +- objects/org/eolang/math/integral.eo | 3 +- objects/org/eolang/math/numbers.eo | 2 +- objects/org/eolang/math/pi.eo | 3 +- objects/org/eolang/math/random.eo | 2 +- objects/org/eolang/math/real.eo | 4 +- objects/org/eolang/nan.eo | 2 +- objects/org/eolang/negative-infinity.eo | 2 +- objects/org/eolang/net/socket.eo | 33 ++-- objects/org/eolang/number.eo | 28 ++- objects/org/eolang/positive-infinity.eo | 2 +- objects/org/eolang/seq.eo | 2 +- objects/org/eolang/string.eo | 2 +- objects/org/eolang/structs/bytes-as-array.eo | 2 +- objects/org/eolang/structs/hash-code-of.eo | 2 +- objects/org/eolang/structs/list.eo | 12 +- objects/org/eolang/structs/map.eo | 13 +- objects/org/eolang/structs/range-of-ints.eo | 3 +- objects/org/eolang/structs/range.eo | 2 +- objects/org/eolang/structs/set.eo | 2 +- objects/org/eolang/switch.eo | 2 +- objects/org/eolang/sys/getenv.eo | 3 +- objects/org/eolang/sys/line-separator.eo | 16 +- objects/org/eolang/sys/os.eo | 4 +- objects/org/eolang/sys/posix.eo | 4 +- objects/org/eolang/sys/win32.eo | 5 +- objects/org/eolang/true.eo | 3 +- objects/org/eolang/try.eo | 4 +- objects/org/eolang/tuple.eo | 2 +- objects/org/eolang/txt/regex.eo | 4 +- objects/org/eolang/txt/sprintf.eo | 4 +- objects/org/eolang/txt/sscanf.eo | 4 +- objects/org/eolang/txt/text.eo | 21 +-- objects/org/eolang/while.eo | 2 +- tests/org/eolang/bool-tests.eo | 23 +-- tests/org/eolang/bytes-tests.eo | 135 +++++++------- .../org/eolang/{cti-test.eo => cti-tests.eo} | 5 +- tests/org/eolang/dataized-tests.eo | 8 +- tests/org/eolang/fs/dir-tests.eo | 18 +- tests/org/eolang/fs/file-tests.eo | 66 +++---- tests/org/eolang/fs/path-tests.eo | 77 ++++---- tests/org/eolang/fs/tmpdir-tests.eo | 3 +- tests/org/eolang/go-tests.eo | 12 +- tests/org/eolang/i16-tests.eo | 61 +++--- tests/org/eolang/i32-tests.eo | 67 +++---- tests/org/eolang/i64-tests.eo | 58 +++--- ...-input-test.eo => bytes-as-input-tests.eo} | 4 +- .../io/{console-test.eo => console-tests.eo} | 5 +- tests/org/eolang/io/dead-input-tests.eo | 4 +- tests/org/eolang/io/dead-output-tests.eo | 3 +- tests/org/eolang/io/input-length-tests.eo | 11 +- ...tput-test.eo => malloc-as-output-tests.eo} | 5 +- .../io/{stdout-test.eo => stdout-tests.eo} | 5 +- tests/org/eolang/io/tee-input-tests.eo | 12 +- tests/org/eolang/malloc-tests.eo | 52 +++--- tests/org/eolang/math/angle-tests.eo | 17 +- tests/org/eolang/math/integral-tests.eo | 9 +- tests/org/eolang/math/numbers-tests.eo | 19 +- tests/org/eolang/math/random-tests.eo | 11 +- tests/org/eolang/math/real-tests.eo | 173 +++++++++--------- tests/org/eolang/nan-tests.eo | 43 ++--- tests/org/eolang/negative-infinity-tests.eo | 146 ++++++++------- tests/org/eolang/number-tests.eo | 83 +++++---- tests/org/eolang/positive-infinity-tests.eo | 138 +++++++------- tests/org/eolang/runtime-tests.eo | 66 +++---- tests/org/eolang/seq-tests.eo | 22 +-- tests/org/eolang/string-tests.eo | 71 +++---- .../eolang/structs/bytes-as-array-tests.eo | 11 +- .../org/eolang/structs/hash-code-of-tests.eo | 39 ++-- tests/org/eolang/structs/list-tests.eo | 110 +++++------ tests/org/eolang/structs/map-tests.eo | 27 +-- .../org/eolang/structs/range-of-ints-tests.eo | 11 +- tests/org/eolang/structs/range-tests.eo | 11 +- tests/org/eolang/structs/set-tests.eo | 11 +- tests/org/eolang/switch-tests.eo | 14 +- tests/org/eolang/sys/os-tests.eo | 5 +- tests/org/eolang/sys/posix-tests.eo | 13 +- tests/org/eolang/sys/win32-tests.eo | 7 +- tests/org/eolang/try-tests.eo | 11 +- tests/org/eolang/tuple-tests.eo | 43 ++--- tests/org/eolang/txt/regex-tests.eo | 31 ++-- tests/org/eolang/txt/sprintf-tests.eo | 20 +- tests/org/eolang/txt/sscanf-tests.eo | 25 +-- tests/org/eolang/txt/text-tests.eo | 133 +++++++------- tests/org/eolang/while-tests.eo | 24 +-- 110 files changed, 1186 insertions(+), 1192 deletions(-) rename tests/org/eolang/{cti-test.eo => cti-tests.eo} (94%) rename tests/org/eolang/io/{bytes-as-input-test.eo => bytes-as-input-tests.eo} (96%) rename tests/org/eolang/io/{console-test.eo => console-tests.eo} (95%) rename tests/org/eolang/io/{malloc-as-output-test.eo => malloc-as-output-tests.eo} (95%) rename tests/org/eolang/io/{stdout-test.eo => stdout-tests.eo} (95%) diff --git a/make/jvm/pom.xml b/make/jvm/pom.xml index 3eb286a1..8d1e19f5 100644 --- a/make/jvm/pom.xml +++ b/make/jvm/pom.xml @@ -28,7 +28,7 @@ SOFTWARE. jvm 1.0-SNAPSHOT - 0.50.2 + 0.51.3 32M 2G diff --git a/objects/org/eolang/bytes.eo b/objects/org/eolang/bytes.eo index 84278716..1dc3f6bf 100644 --- a/objects/org/eolang/bytes.eo +++ b/objects/org/eolang/bytes.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The object encapsulates a chain of bytes, adding a few # convenient operations to it. Objects like `int`, `string`, @@ -35,27 +35,55 @@ data > @ $ > as-bytes eq 01- > as-bool - # Turn this chain of eight bytes into a number. # If there are less or more than eight bytes, there will # be an error returned. - [] > as-number - if. > @ - eq nan.as-bytes - nan + if. > as-number + eq nan.as-bytes + nan + if. + eq positive-infinity.as-bytes + positive-infinity if. - eq positive-infinity.as-bytes - positive-infinity + eq negative-infinity.as-bytes + negative-infinity if. - eq negative-infinity.as-bytes - negative-infinity - if. - size.eq 8 - number ^ - error - sprintf - "Can't convert non 8 length bytes to a number, bytes are %x" - * ^ + size.eq 8 + number $ + error + sprintf + "Can't convert non 8 length bytes to a number, bytes are %x" + * $ + # Turn this chain of eight bytes into a i64 number. + # If there are less or more than eight bytes, there will + # be an error returned. + if. > as-i64 + size.eq 8 + i64 $ + error + sprintf + "Can't convert non 8 length bytes to i64, bytes are %x" + * $ + # Turn this chain of four bytes into a i32 number. + # If there are less or more than four bytes, there will + # be an error returned. + if. > as-i32 + size.eq 4 + i32 $ + error + sprintf + "Can't convert non 4 length bytes to i32, bytes are %x" + * $ + # Turn this chain of two bytes into a i16 number. + # If there are less or more than two bytes, there will + # be an error returned. + if. > as-i16 + size.eq 2 + i16 $ + error + sprintf + "Can't convert non 2 length bytes to i16, bytes are %x" + * $ # Equals to another object. # A condition where two objects have the same value or content. @@ -68,42 +96,6 @@ # Represents a sub-sequence inside the current one. [start len] > slice /org.eolang.bytes - # Turn this chain of eight bytes into a i64 number. - # If there are less or more than eight bytes, there will - # be an error returned. - [] > as-i64 - if. > @ - size.eq 8 - i64 ^ - error - sprintf - "Can't convert non 8 length bytes to i64, bytes are %x" - * ^ - - # Turn this chain of four bytes into a i32 number. - # If there are less or more than four bytes, there will - # be an error returned. - [] > as-i32 - if. > @ - size.eq 4 - i32 ^ - error - sprintf - "Can't convert non 4 length bytes to i32, bytes are %x" - * ^ - - # Turn this chain of two bytes into a i16 number. - # If there are less or more than two bytes, there will - # be an error returned. - [] > as-i16 - if. > @ - size.eq 2 - i16 ^ - error - sprintf - "Can't convert non 2 length bytes to i16, bytes are %x" - * ^ - # Calculate the bitwise and operation. [b] > and /org.eolang.bytes diff --git a/objects/org/eolang/cti.eo b/objects/org/eolang/cti.eo index 6bf5fceb..b8f21b36 100644 --- a/objects/org/eolang/cti.eo +++ b/objects/org/eolang/cti.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # Compile Time Instruction (CTI). # diff --git a/objects/org/eolang/dataized.eo b/objects/org/eolang/dataized.eo index 814d40e8..650d21a1 100644 --- a/objects/org/eolang/dataized.eo +++ b/objects/org/eolang/dataized.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result # `bytes`. diff --git a/objects/org/eolang/error.eo b/objects/org/eolang/error.eo index 0dab2c54..c3d1cfe3 100644 --- a/objects/org/eolang/error.eo +++ b/objects/org/eolang/error.eo @@ -23,9 +23,10 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # 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/false.eo b/objects/org/eolang/false.eo index bd7fa64d..a7d56dfc 100644 --- a/objects/org/eolang/false.eo +++ b/objects/org/eolang/false.eo @@ -23,7 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # The object is a FALSE boolean state. [] > false diff --git a/objects/org/eolang/fs/dir.eo b/objects/org/eolang/fs/dir.eo index 844a7179..31efc2d5 100644 --- a/objects/org/eolang/fs/dir.eo +++ b/objects/org/eolang/fs/dir.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.fs -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Directory in the file system. # Apparently every directory is a file. diff --git a/objects/org/eolang/fs/file.eo b/objects/org/eolang/fs/file.eo index 940fa820..4fbb2bf8 100644 --- a/objects/org/eolang/fs/file.eo +++ b/objects/org/eolang/fs/file.eo @@ -24,10 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.fs -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # The file object in the filesystem. [path] > file diff --git a/objects/org/eolang/fs/path.eo b/objects/org/eolang/fs/path.eo index 39a494e3..783d3871 100644 --- a/objects/org/eolang/fs/path.eo +++ b/objects/org/eolang/fs/path.eo @@ -29,8 +29,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.fs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # A `path` represents a path that is hierarchical and composed of a sequence of # directory and file name elements separated by a special separator or delimiter. @@ -42,6 +41,13 @@ string uri.as-bytes posix string uri.as-bytes + # The system-dependent default name-separator character. + # On UNIX systems the value of this field is "/"; + # on Microsoft Windows systems it is "\\". + if. > separator + os.is-windows + win32.separator + posix.separator # Utility object that joins given `tuple` of paths with current OS separator # and normalizes result path. @@ -57,15 +63,6 @@ win32 joined-path posix joined-path - # The system-dependent default name-separator character. - # On UNIX systems the value of this field is "/"; - # on Microsoft Windows systems it is "\\". - [] > separator - if. > @ - os.is-windows - win32.separator - posix.separator - # POSIX specified path. # A standardized way to represent file or directory locations in a Unix-like system. [uri] > posix @@ -73,13 +70,11 @@ "/" > separator (file uri).as-file > as-file (dir (QQ.fs.file uri)).as-dir > as-dir - uri > @ - # Returns `true` if current path is absolute - starts with '/' char. - [] > is-absolute - and. > @ - uri.length.gt 0 - (uri.as-bytes.slice 0 1).eq separator + and. > is-absolute + uri.length.gt 0 + (uri.as-bytes.slice 0 1).eq separator + uri > @ # Return new `path` with normalized uri. # Normalization includes: diff --git a/objects/org/eolang/fs/tmpdir.eo b/objects/org/eolang/fs/tmpdir.eo index 7412883b..4656eb67 100644 --- a/objects/org/eolang/fs/tmpdir.eo +++ b/objects/org/eolang/fs/tmpdir.eo @@ -27,8 +27,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.fs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Temporary directory. # For Unix/MacOS uses the path supplied by the first environment variable diff --git a/objects/org/eolang/go.eo b/objects/org/eolang/go.eo index 31aa4fcc..5d853073 100644 --- a/objects/org/eolang/go.eo +++ b/objects/org/eolang/go.eo @@ -23,8 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Non-conditional forward and backward jumps. # Forward jump instantly returns provided object to `g.forward` without touching diff --git a/objects/org/eolang/i16.eo b/objects/org/eolang/i16.eo index 27884a13..9b922d65 100644 --- a/objects/org/eolang/i16.eo +++ b/objects/org/eolang/i16.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The 16 bits signed integer. # Here `as-bytes` must be a `bytes` object. diff --git a/objects/org/eolang/i32.eo b/objects/org/eolang/i32.eo index 0607a425..3b634c24 100644 --- a/objects/org/eolang/i32.eo +++ b/objects/org/eolang/i32.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The 32 bits signed integer. # Here `as-bytes` must be a `bytes` object. diff --git a/objects/org/eolang/i64.eo b/objects/org/eolang/i64.eo index e55a1491..807cc76c 100644 --- a/objects/org/eolang/i64.eo +++ b/objects/org/eolang/i64.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The 64 bits signed integer. # Here `as-bytes` must be a `bytes` object. diff --git a/objects/org/eolang/io/bytes-as-input.eo b/objects/org/eolang/io/bytes-as-input.eo index a4811ddc..5d43017c 100644 --- a/objects/org/eolang/io/bytes-as-input.eo +++ b/objects/org/eolang/io/bytes-as-input.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Makes an `input` from bytes. # Here `bts` is sequence of bytes or an object that can be dataized diff --git a/objects/org/eolang/io/console.eo b/objects/org/eolang/io/console.eo index ef0edc5a..2acbaac0 100644 --- a/objects/org/eolang/io/console.eo +++ b/objects/org/eolang/io/console.eo @@ -26,7 +26,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # The `console` object is basic I/O object that allows to # interact with operation system console. diff --git a/objects/org/eolang/io/dead-input.eo b/objects/org/eolang/io/dead-input.eo index d796f118..0a75c877 100644 --- a/objects/org/eolang/io/dead-input.eo +++ b/objects/org/eolang/io/dead-input.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Dead input is an input that reads from nowhere and always # returns empty sequence of bytes `--`. diff --git a/objects/org/eolang/io/dead-output.eo b/objects/org/eolang/io/dead-output.eo index 735a348c..22c0d574 100644 --- a/objects/org/eolang/io/dead-output.eo +++ b/objects/org/eolang/io/dead-output.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Dead output is an output that writes to nowhere. [] > dead-output diff --git a/objects/org/eolang/io/input-length.eo b/objects/org/eolang/io/input-length.eo index bdfece77..52567399 100644 --- a/objects/org/eolang/io/input-length.eo +++ b/objects/org/eolang/io/input-length.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Reads all the bytes from provided `input` and returns its length. [input] > input-length diff --git a/objects/org/eolang/io/malloc-as-output.eo b/objects/org/eolang/io/malloc-as-output.eo index 2e02fd81..7e763d59 100644 --- a/objects/org/eolang/io/malloc-as-output.eo +++ b/objects/org/eolang/io/malloc-as-output.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Makes an output from allocated block in memory. # Here `allocated` is `malloc.of.allocated` object. diff --git a/objects/org/eolang/io/stdin.eo b/objects/org/eolang/io/stdin.eo index 72b79c73..9abb14b0 100644 --- a/objects/org/eolang/io/stdin.eo +++ b/objects/org/eolang/io/stdin.eo @@ -25,7 +25,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # The `stdin` object is a convenient wrapper on `console` object # which is used as input only and allows to read the data from console. diff --git a/objects/org/eolang/io/stdout.eo b/objects/org/eolang/io/stdout.eo index ca392bc6..48ab2de6 100644 --- a/objects/org/eolang/io/stdout.eo +++ b/objects/org/eolang/io/stdout.eo @@ -24,7 +24,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # The `stdout` object is convenient wrapper on `console` object which # uses it as output only and allows to print given argument to console as `string`: diff --git a/objects/org/eolang/io/tee-input.eo b/objects/org/eolang/io/tee-input.eo index b173baea..f6c59d32 100644 --- a/objects/org/eolang/io/tee-input.eo +++ b/objects/org/eolang/io/tee-input.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # Tee input is an input that reads from provided `input`, # writes to provided `output` and behaves as provided `input`. diff --git a/objects/org/eolang/malloc.eo b/objects/org/eolang/malloc.eo index ea5ef9f2..7e0376e4 100644 --- a/objects/org/eolang/malloc.eo +++ b/objects/org/eolang/malloc.eo @@ -23,10 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # The `malloc` object is an abstraction of a storage of data in heap # memory. The implementation of `malloc` is platform dependent. It may diff --git a/objects/org/eolang/math/angle.eo b/objects/org/eolang/math/angle.eo index 6a391c46..4e8315aa 100644 --- a/objects/org/eolang/math/angle.eo +++ b/objects/org/eolang/math/angle.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The angle. # A measure of how much something is tilted or rotated, measured in degrees or radians. diff --git a/objects/org/eolang/math/e.eo b/objects/org/eolang/math/e.eo index fd76e2c8..fede106f 100644 --- a/objects/org/eolang/math/e.eo +++ b/objects/org/eolang/math/e.eo @@ -23,7 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # The Euler's number. # A fundamental mathematical constant approximately equal to 2.7182818284590452354. diff --git a/objects/org/eolang/math/integral.eo b/objects/org/eolang/math/integral.eo index 58e91bd4..297ee8bb 100644 --- a/objects/org/eolang/math/integral.eo +++ b/objects/org/eolang/math/integral.eo @@ -23,8 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Counts integral from `a` to `b`. # Here `func` is integration function, `a` is an upper limit, diff --git a/objects/org/eolang/math/numbers.eo b/objects/org/eolang/math/numbers.eo index c6ff3435..d1513454 100644 --- a/objects/org/eolang/math/numbers.eo +++ b/objects/org/eolang/math/numbers.eo @@ -24,7 +24,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+version 0.50.2 ++version 0.51.3 # Sequence of numbers. # Here `sequence` must be a `tuple` or any `tuple` decorator of `number` objects. diff --git a/objects/org/eolang/math/pi.eo b/objects/org/eolang/math/pi.eo index ef8f7f1d..1f62f506 100644 --- a/objects/org/eolang/math/pi.eo +++ b/objects/org/eolang/math/pi.eo @@ -23,7 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # Returns an approximate PI number. 3.14159265358979323846 > pi diff --git a/objects/org/eolang/math/random.eo b/objects/org/eolang/math/random.eo index fbc39b2a..8f1959a3 100644 --- a/objects/org/eolang/math/random.eo +++ b/objects/org/eolang/math/random.eo @@ -26,7 +26,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+version 0.50.2 ++version 0.51.3 # Generates a pseudo-random number. [seed] > random diff --git a/objects/org/eolang/math/real.eo b/objects/org/eolang/math/real.eo index 0f04032c..1be521ce 100644 --- a/objects/org/eolang/math/real.eo +++ b/objects/org/eolang/math/real.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.math -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Returns a floating point number. [num] > real diff --git a/objects/org/eolang/nan.eo b/objects/org/eolang/nan.eo index 1d2b62be..c50a885c 100644 --- a/objects/org/eolang/nan.eo +++ b/objects/org/eolang/nan.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # The `not a number` object is an abstraction # for representing undefined or unrepresentable numerical results. diff --git a/objects/org/eolang/negative-infinity.eo b/objects/org/eolang/negative-infinity.eo index 49ba03ae..248f72ba 100644 --- a/objects/org/eolang/negative-infinity.eo +++ b/objects/org/eolang/negative-infinity.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # Negative infinity. # A special floating-point value representing an unbounded quantity less than all real numbers. diff --git a/objects/org/eolang/net/socket.eo b/objects/org/eolang/net/socket.eo index 440e24c1..2f28cf99 100644 --- a/objects/org/eolang/net/socket.eo +++ b/objects/org/eolang/net/socket.eo @@ -20,15 +20,15 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.sys.posix +alias org.eolang.sys.os ++alias org.eolang.sys.posix +alias org.eolang.sys.win32 +alias org.eolang.txt.sprintf +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.net -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint unit-test-missing # Socket. # @@ -179,6 +179,9 @@ posix.af-inet.as-i16 htons port inet-addr-as-int + posix > strerror + "strerror" + * (posix "errno" *).code # Scoped posix socket that is passed as argument # to scope of `posix-socket.connect`, `posix-socket.listen` and `scoped-socket.accept`. @@ -186,10 +189,10 @@ [sockfd] > scoped-socket # Makes an `input` from `socket`. # The object allows to use `socket` as input stream and `read` from it sequentially. - as-input recv > as-input + ^.^.as-input recv > as-input # Makes an `output` from posix socket. # The object allows to use `socket` as output stream and `write` to it sequentially. - as-output send > as-output + ^.^.as-output send > as-output # Send bytes through the socket. # Here `buffer` must be an object that can be dataized. @@ -224,15 +227,6 @@ * sockfd strerror.code received.output - # Get error message as `string` from ERRNO. - # - # Attention! The object is for internal usage only, please don't use - # the object programmatically outside of `socket` object. - [] > strerror - posix > @ - "strerror" - * (posix "errno" *).code - # Close socket by given descriptor `sockfd`. # Returns `true` on success, returns `error` otherwise. # @@ -372,6 +366,7 @@ win32.af-inet.as-i16 htons port inet-addr-as-int + win32 "WSAGetLastError" * > last-error # Scoped win32 socket that is passed as argument # to scope of `win32-socket.connect`, `win32-socket.listen` and `scoped-socket.accept`. @@ -379,10 +374,10 @@ [sockfd] > scoped-socket # Makes an `input` from win32 `socket`. # The object allows to use `socket` as input stream and `read` from it sequentially. - as-input recv > as-input + ^.^.as-input recv > as-input # Makes an `output` from win32 socket. # The object allows to use `socket` as output stream and `write` to it sequentially. - as-output send > as-output + ^.^.as-output send > as-output # Send bytes through the socket. # Here `buffer` must be an object that can be dataized. @@ -417,12 +412,6 @@ * sockfd last-error.code received.output - # Get last error. - # - # Attention! The object is for internal usage only, please don't use - # the object programmatically outside of `socket` object. - win32 "WSAGetLastError" * > [] > last-error - # Close socket by given descriptor `sockfd`. # Returns `true` on success, returns `error` otherwise. # diff --git a/objects/org/eolang/number.eo b/objects/org/eolang/number.eo index 96955f4d..145ada4c 100644 --- a/objects/org/eolang/number.eo +++ b/objects/org/eolang/number.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The `number` object is an abstraction of a 64-bit floating-point # number that internally is a chain of eight bytes. @@ -36,6 +36,15 @@ as-i64.as-i32 > as-i32 as-i32.as-i16 > as-i16 as-bytes.eq nan.as-bytes > is-nan + and. > is-integer + is-finite + eq floor + and. > is-finite + is-nan.not + not. + or. + eq positive-infinity + eq negative-infinity # Convert this `number` to `i64` object. [] > as-i64 /org.eolang.i64 @@ -122,18 +131,3 @@ # The object rounds down the original `number` to the nearest # whole `number` that is less than or equal to the original one. [] > floor /org.eolang.number - - # Returns `true` if current number does not have a fractional component. - [] > is-integer - and. > @ - is-finite - eq floor - - # Returns `true` if current number is finite. - [] > is-finite - and. > @ - is-nan.not - not. - or. - eq positive-infinity - eq negative-infinity diff --git a/objects/org/eolang/positive-infinity.eo b/objects/org/eolang/positive-infinity.eo index 65905ee6..dfa2c18f 100644 --- a/objects/org/eolang/positive-infinity.eo +++ b/objects/org/eolang/positive-infinity.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # Positive infinity. # A special floating-point value representing an unbounded quantity greater than all real numbers. diff --git a/objects/org/eolang/seq.eo b/objects/org/eolang/seq.eo index 0f0f4f38..91760d96 100644 --- a/objects/org/eolang/seq.eo +++ b/objects/org/eolang/seq.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # Sequence. # The object, when being dataized, dataizes all provided diff --git a/objects/org/eolang/string.eo b/objects/org/eolang/string.eo index ea9dc304..32536681 100644 --- a/objects/org/eolang/string.eo +++ b/objects/org/eolang/string.eo @@ -24,7 +24,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # The `string` object is an abstraction of a text string, which # internally is a chain of bytes. diff --git a/objects/org/eolang/structs/bytes-as-array.eo b/objects/org/eolang/structs/bytes-as-array.eo index ff2ad809..08761b50 100644 --- a/objects/org/eolang/structs/bytes-as-array.eo +++ b/objects/org/eolang/structs/bytes-as-array.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 # Represents sequence of bytes as array. # Here `bts` is `bytes` objects, the return value is `tuple` where diff --git a/objects/org/eolang/structs/hash-code-of.eo b/objects/org/eolang/structs/hash-code-of.eo index cfeed634..b166cd21 100644 --- a/objects/org/eolang/structs/hash-code-of.eo +++ b/objects/org/eolang/structs/hash-code-of.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 # Hash code - the pseudo-unique float numeric # representation of an object. diff --git a/objects/org/eolang/structs/list.eo b/objects/org/eolang/structs/list.eo index bad596ca..f3b25244 100644 --- a/objects/org/eolang/structs/list.eo +++ b/objects/org/eolang/structs/list.eo @@ -23,8 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # List implements based operations on collections like reducing, mapping, filtering, etc. # Decorates and extends `tuple`. @@ -33,6 +32,8 @@ # Is it empty?. # A check to determine if an object contains no elements or data. 0.eq origin.length > is-empty + # Returns a new list sorted via `.lt` method. + $ > sorted # Create a new list with this element added to the end of it. [x] > with @@ -204,13 +205,6 @@ -1 index-of element - # Returns a new list sorted via `.lt` method. - # @todo #3251:30min The object does not work. After moving `list` object - # to eo-runtime this is the only method which does not work because it's quite - # hard to implement properly, especially after big changes in EO semantic. - # We need to get it done and write some tests for it. - ^ > [] > sorted - # Filter list with index with the function `func`. # Here `func` must be an abstract # object with two attributes. The first diff --git a/objects/org/eolang/structs/map.eo b/objects/org/eolang/structs/map.eo index 0dffc9e4..258e272e 100644 --- a/objects/org/eolang/structs/map.eo +++ b/objects/org/eolang/structs/map.eo @@ -20,14 +20,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.txt.sprintf +alias org.eolang.structs.hash-code-of +alias org.eolang.structs.list ++alias org.eolang.txt.sprintf +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Hash-map. # Here `pairs` must be a `tuple` of `map.entry` object. @@ -97,14 +96,6 @@ # or `false` if was not. # The `get` attribute returns either found object, or `error` if # the object wasn't found. - # @todo #3251:30min Find a way to link hash code and index of key. - # Right now map is implemented as `tuple` of objects where every - # element is composition of three entities: hash, key and value. - # When we try to find an element in hash map by key (K1) we're - # calculating hash of K1 (H1) and trying to find the entity where - # `entity.hash` (H2) is equal to H1. This search is implemented by - # simple reducing initial hash map `tuple` and obviously slow - O(n). - # We need to find a way to get a right index of entity in hash map # `tuple` just by applying some simple operation on H1, similar to it's # implemented in other programming languages. Then we'll get O(1) on # `found` operation. diff --git a/objects/org/eolang/structs/range-of-ints.eo b/objects/org/eolang/structs/range-of-ints.eo index 4191a883..5d5462da 100644 --- a/objects/org/eolang/structs/range-of-ints.eo +++ b/objects/org/eolang/structs/range-of-ints.eo @@ -24,8 +24,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Range of integers from `start` to `end` (soft border) with step = 1. # Here `start` and `end` must be `int`s. If they're not - an error will diff --git a/objects/org/eolang/structs/range.eo b/objects/org/eolang/structs/range.eo index 184fc7fc..306a6837 100644 --- a/objects/org/eolang/structs/range.eo +++ b/objects/org/eolang/structs/range.eo @@ -24,7 +24,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 # Range - create a `list` containing a range of elements # Here `start` must be a abstract object that must have an object `next` to get diff --git a/objects/org/eolang/structs/set.eo b/objects/org/eolang/structs/set.eo index d3e335f9..ba872999 100644 --- a/objects/org/eolang/structs/set.eo +++ b/objects/org/eolang/structs/set.eo @@ -25,7 +25,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 # Set - is an unordered `list` of unique objects. [lst] > set diff --git a/objects/org/eolang/switch.eo b/objects/org/eolang/switch.eo index c3230358..e724750e 100644 --- a/objects/org/eolang/switch.eo +++ b/objects/org/eolang/switch.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # The object allows to choose right options according to cases conditions. # Parameter cases is the array of two dimensional array, which diff --git a/objects/org/eolang/sys/getenv.eo b/objects/org/eolang/sys/getenv.eo index ae6e97a1..766947cd 100644 --- a/objects/org/eolang/sys/getenv.eo +++ b/objects/org/eolang/sys/getenv.eo @@ -26,7 +26,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.sys -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # Get environment variable as `string`. # If return `string` is empty - the variable does not exist. diff --git a/objects/org/eolang/sys/line-separator.eo b/objects/org/eolang/sys/line-separator.eo index 7b264792..c86ccf36 100644 --- a/objects/org/eolang/sys/line-separator.eo +++ b/objects/org/eolang/sys/line-separator.eo @@ -24,15 +24,15 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.sys -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # Returns the system-dependent line separator string. # On UNIX systems, it returns "\n"; # on Microsoft Windows systems it returns "\r\n". -[] > line-separator - string > @ - as-bytes. - if. - os.is-windows - "\r\n" - "\n" +string > line-separator + as-bytes. + if. + os.is-windows + "\r\n" + "\n" diff --git a/objects/org/eolang/sys/os.eo b/objects/org/eolang/sys/os.eo index 59b63105..795a43be 100644 --- a/objects/org/eolang/sys/os.eo +++ b/objects/org/eolang/sys/os.eo @@ -24,9 +24,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.sys -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Represents the name of the operating system. [] > os diff --git a/objects/org/eolang/sys/posix.eo b/objects/org/eolang/sys/posix.eo index d741724e..61a9aab4 100644 --- a/objects/org/eolang/sys/posix.eo +++ b/objects/org/eolang/sys/posix.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.sys -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Makes a Unix syscall by name with POSIX interface. # See https://filippo.io/linux-syscall-table/. diff --git a/objects/org/eolang/sys/win32.eo b/objects/org/eolang/sys/win32.eo index d4c9571a..ead537e6 100644 --- a/objects/org/eolang/sys/win32.eo +++ b/objects/org/eolang/sys/win32.eo @@ -23,9 +23,10 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.sys -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 ++unlint many-free-attributes # Makes a kernel32.dll function call by name. # diff --git a/objects/org/eolang/true.eo b/objects/org/eolang/true.eo index 56d2ba21..863f13a2 100644 --- a/objects/org/eolang/true.eo +++ b/objects/org/eolang/true.eo @@ -23,7 +23,8 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint unit-test-missing # The object is a TRUE boolean state. [] > true diff --git a/objects/org/eolang/try.eo b/objects/org/eolang/try.eo index c1f90292..d740fb2b 100644 --- a/objects/org/eolang/try.eo +++ b/objects/org/eolang/try.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Try, catch and finally. This object helps catch errors created by the # `error` object. When being dataized, such objects will crash the problem. diff --git a/objects/org/eolang/tuple.eo b/objects/org/eolang/tuple.eo index 0b628e8b..01e7326b 100644 --- a/objects/org/eolang/tuple.eo +++ b/objects/org/eolang/tuple.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # Tuple. # An ordered, immutable collection of elements. diff --git a/objects/org/eolang/txt/regex.eo b/objects/org/eolang/txt/regex.eo index 462cc5e5..5379aa80 100644 --- a/objects/org/eolang/txt/regex.eo +++ b/objects/org/eolang/txt/regex.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.txt -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Regular expression in Perl format. # Here `pattern` is a string pattern. diff --git a/objects/org/eolang/txt/sprintf.eo b/objects/org/eolang/txt/sprintf.eo index cc367402..6b2eb0ff 100644 --- a/objects/org/eolang/txt/sprintf.eo +++ b/objects/org/eolang/txt/sprintf.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.txt -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # The sprintf object allows you to format and output text depending # on the arguments passed to it. diff --git a/objects/org/eolang/txt/sscanf.eo b/objects/org/eolang/txt/sscanf.eo index 70edd6ea..5648d498 100644 --- a/objects/org/eolang/txt/sscanf.eo +++ b/objects/org/eolang/txt/sscanf.eo @@ -23,9 +23,9 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.txt -+rt jvm org.eolang:eo-runtime:0.50.2 ++rt jvm org.eolang:eo-runtime:0.51.3 +rt node eo2js-runtime:0.0.0 -+version 0.50.2 ++version 0.51.3 # Reads formatted input from a string. # This object has two free attributes: diff --git a/objects/org/eolang/txt/text.eo b/objects/org/eolang/txt/text.eo index d9e6cd0d..87502912 100644 --- a/objects/org/eolang/txt/text.eo +++ b/objects/org/eolang/txt/text.eo @@ -20,23 +20,18 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.structs.list +alias org.eolang.structs.bytes-as-array ++alias org.eolang.structs.list +alias org.eolang.txt.regex +alias org.eolang.txt.sprintf +alias org.eolang.txt.sscanf +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang.txt -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 # Text. # A sequence of characters representing words, sentences, or data. -# @todo #3481:30min Remove all +unlit broken-ref from EO source code. -# These suppressions were added in order to be compile EO when @ref attribute -# from XMIR is removed, by it's checked by LintMojo. We need to remove these -# suppressions when `lints` repository is fixed and new version is used in EO. [origin] > text origin > @ # Check that all signs in string are numbers or letters. @@ -47,6 +42,11 @@ (regex "/^[a-zA-Z]+$/").matches origin > is-alpha # Check that all signs in string are ASCII characters. (regex "/^[\\x00-\\x7F]*$/").matches origin > is-ascii + # Returns `text` trimmed from both sides. + if. > trimmed + 0.eq origin.as-bytes.size + $ + trimmed-left.trimmed-right # Takes a piece of a `text` as another `text`. # Here `start` must be an integer index to start slicing from, @@ -105,13 +105,6 @@ first-non-space-index (index.plus -1).as-number index.plus 1 - # Returns `text` trimmed from both sides. - [] > trimmed - if. > @ - 0.eq origin.as-bytes.size - ^ - trimmed-left.trimmed-right - # Joins `items`, which is a `tuple` of strings, using current `string` # as a delimiter. [items] > joined diff --git a/objects/org/eolang/while.eo b/objects/org/eolang/while.eo index be7f949b..adadece8 100644 --- a/objects/org/eolang/while.eo +++ b/objects/org/eolang/while.eo @@ -23,7 +23,7 @@ +architect yegor256@gmail.com +home https://github.com/objectionary/eo +package org.eolang -+version 0.50.2 ++version 0.51.3 # The `while` object is very similar to a loop with a pre-condition. # Here's how you can use it: diff --git a/tests/org/eolang/bool-tests.eo b/tests/org/eolang/bool-tests.eo index 9dc09ef1..53c241c8 100644 --- a/tests/org/eolang/bool-tests.eo +++ b/tests/org/eolang/bool-tests.eo @@ -24,58 +24,59 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-bools +[] > tests-compares-two-bools eq. > @ true true # This unit test is supposed to check the functionality of the corresponding object. -[] > true-as-bool +[] > tests-true-as-bool true.as-bool > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-different-types +[] > tests-compares-two-different-bool-types not. > @ eq. true 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-bool-to-bytes +[] > tests-compares-bool-to-bytes and. > @ true.eq 01- false.eq 00- # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-bool-to-string +[] > tests-compares-bool-to-string and. > @ true.eq "\001" false.eq "\000" # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-bool-to-bytes-reverse +[] > tests-compares-bool-to-bytes-reverse and. > @ 01-.as-bytes.eq true 00-.as-bytes.eq false # This unit test is supposed to check the functionality of the corresponding object. -[] > true-not-is-false +[] > tests-true-not-is-false eq. > @ true.not false # This unit test is supposed to check the functionality of the corresponding object. -[] > true-and-false-is-false +[] > tests-true-and-false-is-false not. > @ and. true false # This unit test is supposed to check the functionality of the corresponding object. -[] > forks-on-true-condition +[] > tests-forks-on-true-condition eq. > @ if. 5.eq 5 @@ -84,7 +85,7 @@ 123 # This unit test is supposed to check the functionality of the corresponding object. -[] > forks-on-false-condition +[] > tests-forks-on-false-condition eq. > @ if. 5.eq 8 diff --git a/tests/org/eolang/bytes-tests.eo b/tests/org/eolang/bytes-tests.eo index 5de3eb4c..aad046c0 100644 --- a/tests/org/eolang/bytes-tests.eo +++ b/tests/org/eolang/bytes-tests.eo @@ -24,10 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > takes-part-of-bytes +[] > tests-takes-part-of-bytes eq. > @ slice. 20-1F-EE-B5-90 @@ -36,7 +37,7 @@ 1F-EE-B5 # This unit test is supposed to check the functionality of the corresponding object. -[] > size-of-part-is-correct +[] > tests-size-of-part-is-correct eq. > @ size. slice. @@ -46,42 +47,42 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > counts-size-of-bytes +[] > tests-counts-size-of-bytes eq. > @ size. F1-20-5F-EC-B5-90-32 7 # This unit test is supposed to check the functionality of the corresponding object. -[] > turns-bytes-into-a-string +[] > tests-turns-bytes-into-a-string eq. > @ string E4-BD-A0-E5-A5-BD-2C-20-D0-B4-D1-80-D1-83-D0-B3-21 "你好, друг!" # This unit test is supposed to check the functionality of the corresponding object. -[] > left-zero +[] > tests-left-zero not. > @ eq. 0.as-bytes.left 1 -1.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > left-with-zero +[] > tests-left-with-zero not. > @ eq. 2.as-bytes.left 0 -3.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > left-with-odd-neg +[] > tests-left-with-odd-neg not. > @ eq. -17.as-bytes.left 1 33.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > left-with-minus-one +[] > tests-left-with-minus-one eq. > @ eq. -1.as-bytes.left 3 @@ -89,56 +90,56 @@ false # This unit test is supposed to check the functionality of the corresponding object. -# (-18.left 2).eq 71.not -[] > left-with-even-neg +# (-18.left 2).eq 71.not. +[] > tests-left-with-even-neg eq. > @ FF-FF-FF-FF-FF-FF-FF-EE.left 2 00-00-00-00-00-00-00-47.not # This unit test is supposed to check the functionality of the corresponding object. -[] > left-with-even-plus +[] > tests-left-with-even-plus not. > @ eq. 4.as-bytes.left 3 -33.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > left-with-odd-plus +[] > tests-left-with-odd-plus not. > @ eq. 5.as-bytes.left 3 -41.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-zero +[] > tests-right-with-zero not. > @ eq. 0.as-bytes.right 2 -1.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-odd-neg +[] > tests-right-with-odd-neg not. > @ eq. -37.as-bytes.right 3 4.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-minus-one +[] > tests-right-with-minus-one not. > @ eq. -1.as-bytes.right 4 0.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-even-neg +[] > tests-right-with-even-neg not. > @ eq. -38.as-bytes.right 1 18.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-even-plus +[] > tests-right-with-even-plus eq. > @ eq. 36.as-bytes.right 2 @@ -146,14 +147,14 @@ false # This unit test is supposed to check the functionality of the corresponding object. -[] > right-with-odd-plus +[] > tests-right-with-odd-plus not. > @ eq. 37.as-bytes.right 3 -5.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > and-with-zero +[] > tests-and-with-zero not. > @ eq. and. @@ -162,14 +163,14 @@ -1.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > and-with-two-neg +[] > tests-and-with-two-neg not. > @ eq. -6.as-bytes.and -4.as-bytes 7.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > and-with-two-plus +[] > tests-and-with-two-plus not. > @ eq. and. @@ -178,91 +179,91 @@ -1.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > and-with-one-neg-one-plus +[] > tests-and-with-one-neg-one-plus not. > @ eq. -7.as-bytes.and 7.as-bytes -2.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > or-with-zero +[] > tests-or-with-zero not. > @ eq. -11.as-bytes.or 0.as-bytes 10.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > or-with-two-neg +[] > tests-or-with-two-neg not. > @ eq. -27.as-bytes.or -13.as-bytes 8.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > or-with-two-plus +[] > tests-or-with-two-plus not. > @ eq. 5.as-bytes.or 14.as-bytes -16.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > or-with-one-neg-one-plus +[] > tests-or-with-one-neg-one-plus not. > @ eq. -7.as-bytes.or 23.as-bytes 0.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > xor-with-zero +[] > tests-xor-with-zero not. > @ eq. 0.as-bytes.xor 29.as-bytes -30.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > xor-with-two-neg +[] > tests-xor-with-two-neg not. > @ eq. -1.as-bytes.xor -123.as-bytes -123.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > xor-with-two-plus +[] > tests-xor-with-two-plus not. > @ eq. 53.as-bytes.xor 24.as-bytes -46.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > xor-with-one-neg-one-plus +[] > tests-xor-with-one-neg-one-plus not. > @ eq. -36.as-bytes.xor 43.as-bytes 8.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > not-with-zero +[] > tests-not-with-zero not. > @ eq. 0.as-bytes 0.as-bytes.not # This unit test is supposed to check the functionality of the corresponding object. -[] > not-with-neg +[] > tests-not-with-neg not. > @ eq. -1.as-bytes -1.as-bytes.not # This unit test is supposed to check the functionality of the corresponding object. -[] > not-with-plus +[] > tests-not-with-plus not. > @ eq. 53.as-bytes 53.as-bytes.not # This unit test is supposed to check the functionality of the corresponding object. -[] > conjunction-of-bytes +[] > tests-conjunction-of-bytes 02-EF-D4-05-5E-78-3A > a 12-33-C1-B5-5E-71-55 > b eq. > @ @@ -270,7 +271,7 @@ 02-23-C0-05-5E-70-10 # This unit test is supposed to check the functionality of the corresponding object. -[] > written-in-several-lines +[] > tests-written-in-several-lines eq. > @ size. CA-FE- @@ -278,7 +279,7 @@ 4 # This unit test is supposed to check the functionality of the corresponding object. -[] > bitwise-works +[] > tests-bitwise-works eq. > @ as-number. and. @@ -287,15 +288,15 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > convertible-to-bool +[] > tests-convertible-to-bool not. > @ eq. 01-.as-bool 00-.as-bool # This unit test is supposed to check the functionality of the corresponding object. -# (-127.or 127).eq -1 -[] > bitwise-works-negative +# (-127.or 127).eq -1. +[] > tests-bitwise-works-negative eq. > @ as-number. or. @@ -304,7 +305,7 @@ FF-FF-FF-FF-FF-FF-FF-FF # This unit test is supposed to check the functionality of the corresponding object. -[] > concatenation-of-bytes +[] > tests-concatenation-of-bytes 02-EF-D4-05-5E-78-3A > a 12-33-C1-B5-5E-71-55 > b eq. > @ @@ -312,7 +313,7 @@ 02-EF-D4-05-5E-78-3A-12-33-C1-B5-5E-71-55 # This unit test is supposed to check the functionality of the corresponding object. -[] > concat-bools-as-bytes +[] > tests-concat-bools-as-bytes true.as-bytes > b1 false.as-bytes > b2 eq. > @ @@ -322,7 +323,7 @@ 01-00 # This unit test is supposed to check the functionality of the corresponding object. -[] > concat-with-empty +[] > tests-concat-with-empty eq. > @ concat. 05-5E-78 @@ -330,7 +331,7 @@ 05-5E-78 # This unit test is supposed to check the functionality of the corresponding object. -[] > concat-empty-with +[] > tests-concat-empty-with eq. > @ concat. -- @@ -338,7 +339,7 @@ 05-5E-78 # This unit test is supposed to check the functionality of the corresponding object. -[] > concat-empty +[] > tests-concat-empty eq. > @ concat. -- @@ -346,7 +347,7 @@ -- # This unit test is supposed to check the functionality of the corresponding object. -[] > concat-strings +[] > tests-concat-strings concat. > s-bytes "hello ".as-bytes "world".as-bytes @@ -355,69 +356,69 @@ "hello world" # This unit test is supposed to check the functionality of the corresponding object. -# (2397719729.xor 4294967295).eq 1897247566 -[] > xor-works +# (2397719729.xor 4294967295).eq 1897247566. +[] > tests-xor-works eq. > @ 00-00-00-00-8E-EA-4C-B1.xor 00-00-00-00-FF-FF-FF-FF 00-00-00-00-71-15-B3-4E # This unit test is supposed to check the functionality of the corresponding object. -[] > one-xor-one-as-number +[] > tests-one-xor-one-as-number eq. > @ (1.as-bytes.xor 1.as-bytes).as-number 0 # This unit test is supposed to check the functionality of the corresponding object. -# (2397719729.or -4294967296).eq -1897247567 -[] > or-neg-bytes-with-leading-zeroes +# (2397719729.or -4294967296).eq -1897247567. +[] > tests-or-neg-bytes-with-leading-zeroes eq. > @ 00-00-00-00-8E-EA-4C-B1.or FF-FF-FF-FF-00-00-00-00 FF-FF-FF-FF-8E-EA-4C-B1 # This unit test is supposed to check the functionality of the corresponding object. -# (2397719729.and -4294967296).eq 0 -[] > and-neg-bytes-as-number-with-leading-zeroes +# (2397719729.and -4294967296).eq 0. +[] > tests-and-neg-bytes-as-number-with-leading-zeroes eq. > @ (00-00-00-00-8E-EA-4C-B1.and FF-FF-FF-FF-00-00-00-00).as-number 0 # This unit test is supposed to check the functionality of the corresponding object. -# (2397719729.xor -4294967296).eq -1897247567 -[] > xor-neg-bytes-with-leading-zeroes +# (2397719729.xor -4294967296).eq -1897247567. +[] > tests-xor-neg-bytes-with-leading-zeroes eq. > @ 00-00-00-00-8E-EA-4C-B1.xor FF-FF-FF-FF-00-00-00-00 FF-FF-FF-FF-8E-EA-4C-B1 # This unit test is supposed to check the functionality of the corresponding object. -# (4294967295.or -4294967296).eq -1 -[] > or-neg-bytes-without-leading-zeroes +# (4294967295.or -4294967296).eq -1. +[] > tests-or-neg-bytes-without-leading-zeroes eq. > @ 00-00-00-00-FF-FF-FF-FF.or FF-FF-FF-FF-00-00-00-00 FF-FF-FF-FF-FF-FF-FF-FF # This unit test is supposed to check the functionality of the corresponding object. -# (4294967295.and -4294967296).eq 0 -[] > and-neg-bytes-as-number-without-leading-zeroes +# (4294967295.and -4294967296).eq 0. +[] > tests-and-neg-bytes-as-number-without-leading-zeroes eq. > @ (00-00-00-00-FF-FF-FF-FF.and FF-FF-FF-FF-00-00-00-00).as-number 0 # This unit test is supposed to check the functionality of the corresponding object. -# (4294967295.xor -4294967296).eq -1 -[] > xor-neg-bytes-as-number-without-leading-zeroes +# (4294967295.xor -4294967296).eq -1. +[] > tests-xor-neg-bytes-as-number-without-leading-zeroes eq. > @ (00-00-00-00-FF-FF-FF-FF.xor FF-FF-FF-FF-00-00-00-00).as-number FF-FF-FF-FF-FF-FF-FF-FF # This unit test is supposed to check the functionality of the corresponding object. -[] > or-neg-bytes-as-number-with-zero +[] > tests-or-neg-bytes-as-number-with-zero eq. > @ (-4294967296.as-bytes.or 0.as-bytes).as-number -4294967296 # This unit test is supposed to check the functionality of the corresponding object. -# (-4294967296L.or 1).eq -4294967295L -[] > or-neg-bytes-with-one +# (-4294967296L.or 1).eq -4294967295L. +[] > tests-or-neg-bytes-with-one eq. > @ FF-FF-FF-FF-00-00-00-00.or 00-00-00-00-00-00-00-01 FF-FF-FF-FF-00-00-00-01 @@ -431,19 +432,19 @@ 01-01-01-01.as-i64 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > bytes-converts-to-i64 +[] > tests-bytes-converts-to-i64 eq. > @ 00-00-00-00-00-00-00-2A.as-i64 42.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > bytes-converts-to-i64-and-back +[] > tests-bytes-converts-to-i64-and-back eq. > @ 00-00-00-00-00-00-00-33.as-i64.as-bytes 00-00-00-00-00-00-00-33 # This unit test is supposed to check the functionality of the corresponding object. -[] > bytes-as-i64-as-bytes-not-eq-to-number-as-bytes +[] > tests-bytes-as-i64-as-bytes-not-eq-to-number-as-bytes not. > @ eq. 00-00-00-00-00-00-00-2A.as-i64.as-bytes diff --git a/tests/org/eolang/cti-test.eo b/tests/org/eolang/cti-tests.eo similarity index 94% rename from tests/org/eolang/cti-test.eo rename to tests/org/eolang/cti-tests.eo index 7bfb9f8a..ffafd118 100644 --- a/tests/org/eolang/cti-test.eo +++ b/tests/org/eolang/cti-tests.eo @@ -24,10 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > just-prints-warning +[] > tests-tests-just-prints-warning eq. > @ cti 2.times 2 diff --git a/tests/org/eolang/dataized-tests.eo b/tests/org/eolang/dataized-tests.eo index 02d980f2..fb50307a 100644 --- a/tests/org/eolang/dataized-tests.eo +++ b/tests/org/eolang/dataized-tests.eo @@ -24,10 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > dataized-does-not-do-recalculation +[] > tests-dataized-does-not-do-recalculation eq. > @ malloc.for 0 @@ -44,8 +45,7 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > dataizes-as-bytes-behaves-as-exclamationed - # Func. +[] > tests-dataizes-as-bytes-behaves-as-exclamationed [] > func malloc.for > @ 0 diff --git a/tests/org/eolang/fs/dir-tests.eo b/tests/org/eolang/fs/dir-tests.eo index 2477a8dc..048c1ff0 100644 --- a/tests/org/eolang/fs/dir-tests.eo +++ b/tests/org/eolang/fs/dir-tests.eo @@ -26,22 +26,18 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.fs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > bound-tmpfile-does-not-recreates-file - tmpdir.tmpfile.as-file > f - f.path.eq f.path > @ - -# This unit test is supposed to check the functionality of the corresponding object. -[] > makes-new-directory +[] > tests-makes-new-directory (tmpdir.tmpfile.deleted.as-path.resolved "foo-new").as-dir.made > d and. > @ d.exists d.is-directory # This unit test is supposed to check the functionality of the corresponding object. -[] > deletes-empty-directory +[] > tests-deletes-empty-directory tmpdir .tmpfile .deleted @@ -61,7 +57,7 @@ true > [d] # This unit test is supposed to check the functionality of the corresponding object. -[] > deletes-directory-with-files-recursively +[] > tests-deletes-directory-with-files-recursively (dir tmpdir.tmpfile.deleted).made > d d.tmpfile > first d.tmpfile > second @@ -76,7 +72,7 @@ second.exists.not # This unit test is supposed to check the functionality of the corresponding object. -[] > deletes-directory-with-file-and-dir +[] > tests-deletes-directory-with-file-and-dir (dir tmpdir.tmpfile.deleted).made > d (dir d.tmpfile.deleted).made > inner d.tmpfile > f @@ -93,7 +89,7 @@ f.exists.not # This unit test is supposed to check the functionality of the corresponding object. -[] > walks-recursively +[] > tests-walks-recursively (dir tmpdir.tmpfile.deleted).made.as-path > d seq > @ * diff --git a/tests/org/eolang/fs/file-tests.eo b/tests/org/eolang/fs/file-tests.eo index 5bc52c51..6acdd4ba 100644 --- a/tests/org/eolang/fs/file-tests.eo +++ b/tests/org/eolang/fs/file-tests.eo @@ -29,45 +29,45 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.fs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > check-if-current-directory-is-directory +[] > tests-check-if-current-directory-is-directory (file ".").is-directory > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > check-if-absent-file-does-not-exist +[] > tests-check-if-absent-file-does-not-exist (file "absent.txt").exists.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-self-after-deleting +[] > tests-returns-self-after-deleting tmpdir.tmpfile > temp temp.deleted.path.eq temp.path > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-self-after-touching +[] > tests-returns-self-after-touching tmpdir.tmpfile > temp temp.deleted.touched.path.eq temp.path > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-file-does-not-exist-after-deleting +[] > tests-checks-file-does-not-exist-after-deleting tmpdir.tmpfile.deleted.exists.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > touches-a-file +[] > tests-touches-a-file tmpdir.tmpfile.deleted.touched.exists > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > measures-empty-file-after-touching +[] > tests-measures-empty-file-after-touching tmpdir.tmpfile.deleted.touched.size.eq 0 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-fail-on-double-touching +[] > tests-does-not-fail-on-double-touching tmpdir.tmpfile.deleted.touched.touched.exists > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-fail-on-double-deleting +[] > tests-does-not-fail-on-double-deleting tmpdir.tmpfile.deleted.deleted.exists.not > @ # This unit test is supposed to check the functionality of the corresponding object. @@ -75,7 +75,7 @@ (tmpdir.as-path.resolved "foo").as-dir.tmpfile > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-and-touches +[] > tests-resolves-and-touches (tmpdir.as-path.resolved "foo/bar").as-dir > resolved resolved.tmpfile > f seq > @ @@ -90,7 +90,7 @@ * "foo" "bar" # This unit test is supposed to check the functionality of the corresponding object. -[] > moves-a-file +[] > tests-moves-a-file tmpdir.tmpfile > temp sprintf > dest "%s.dest" @@ -125,8 +125,8 @@ "r+" f > [f] -# Test -[] > touches-absent-file-on-opening-for-writing +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-touches-absent-file-on-opening-for-writing tmpdir .tmpfile .deleted @@ -135,8 +135,8 @@ true > [f] .exists > @ -# Test -[] > touches-absent-file-on-opening-for-appending +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-touches-absent-file-on-opening-for-appending tmpdir .tmpfile .deleted @@ -145,8 +145,8 @@ true > [f] .exists > @ -# Test -[] > touches-absent-file-on-opening-for-writing-or-reading +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-touches-absent-file-on-opening-for-writing-or-reading tmpdir .tmpfile .deleted @@ -155,8 +155,8 @@ true > [f] .exists > @ -# Test -[] > touches-absent-file-on-opening-for-reading-or-appending +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-touches-absent-file-on-opening-for-reading-or-appending tmpdir .tmpfile .deleted @@ -166,7 +166,7 @@ .exists > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > writes-data-to-file +[] > tests-writes-data-to-file tmpdir .tmpfile .open @@ -176,7 +176,7 @@ .eq 12 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > appending-data-to-file +[] > tests-appending-data-to-file tmpdir .tmpfile .open @@ -189,7 +189,7 @@ .eq 13 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > truncates-file-opened-for-writing +[] > tests-truncates-file-opened-for-writing tmpdir .tmpfile .open @@ -202,7 +202,7 @@ .eq 0 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > truncates-file-opened-for-writing-or-reading +[] > tests-truncates-file-opened-for-writing-or-reading tmpdir .tmpfile .open @@ -215,7 +215,7 @@ .eq 0 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-truncate-file-opened-for-appending +[] > tests-does-not-truncate-file-opened-for-appending tmpdir .tmpfile .open @@ -228,7 +228,7 @@ .eq 12 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-truncate-file-opened-for-reading-or-appending +[] > tests-does-not-truncate-file-opened-for-reading-or-appending tmpdir .tmpfile .open @@ -241,7 +241,7 @@ .eq 12 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-truncate-file-opened-for-reading +[] > tests-does-not-truncate-file-opened-for-reading tmpdir .tmpfile .open @@ -262,7 +262,7 @@ f.write "Hello" > [f] # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-file +[] > tests-reads-from-file malloc .of 12 @@ -291,7 +291,7 @@ f.read 12 > [f] # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-file-from-different-instances +[] > tests-reads-from-file-from-different-instances tmpdir.tmpfile > temp temp.path > src seq > @ @@ -317,7 +317,7 @@ .eq "Shrek is love" # This unit test is supposed to check the functionality of the corresponding object. -[] > writes-to-file-from-different-instances +[] > tests-writes-to-file-from-different-instances tmpdir.tmpfile > temp temp.path > src seq > @ @@ -346,7 +346,7 @@ .eq "Shrek is love!" # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-file-sequentially +[] > tests-reads-from-file-sequentially malloc .of 5 @@ -368,7 +368,7 @@ .eq "world" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > writes-to-file-sequentially +[] > tests-writes-to-file-sequentially tmpdir .tmpfile .open diff --git a/tests/org/eolang/fs/path-tests.eo b/tests/org/eolang/fs/path-tests.eo index 9695f618..f372d61d 100644 --- a/tests/org/eolang/fs/path-tests.eo +++ b/tests/org/eolang/fs/path-tests.eo @@ -26,10 +26,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.fs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > determines-separator-depending-on-os +[] > tests-determines-separator-depending-on-os eq. > @ path.separator if. @@ -38,13 +39,13 @@ path.posix.separator # This unit test is supposed to check the functionality of the corresponding object. -[] > detects-absolute-posix-path +[] > tests-detects-absolute-posix-path and. > @ (path.posix "/var/www/html").is-absolute (path.posix "foo/bar/baz").is-absolute.not # This unit test is supposed to check the functionality of the corresponding object. -[] > detects-absolute-win32-path +[] > tests-detects-absolute-win32-path and. > @ and. (path.win32 "C:\\Windows\\Users").is-absolute @@ -52,151 +53,151 @@ (path.win32 "temp\\var").is-absolute.not # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-posix-path +[] > tests-normalizes-posix-path eq. > @ (path.posix "/foo/bar/.//./baz//../x/").normalized "/foo/bar/x/" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-posix-relative-path +[] > tests-normalizes-posix-relative-path eq. > @ (path.posix "../../foo/./bar/../x/../y").normalized "../../foo/y" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-empty-posix-path-to-current-dir +[] > tests-normalizes-empty-posix-path-to-current-dir eq. > @ (path.posix "").normalized "." # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-path-to-root +[] > tests-normalizes-path-to-root eq. > @ (path.posix "/foo/bar/baz/../../../../").normalized "/" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-absolute-win32-path-without-drive +[] > tests-normalizes-absolute-win32-path-without-drive eq. > @ (path.win32 "\\Windows\\Users\\..\\App\\\\.\\Local\\\\").normalized "\\Windows\\App\\Local\\" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-absolute-win32-path-with-drive +[] > tests-normalizes-absolute-win32-path-with-drive eq. > @ (path.win32 "C:\\Windows\\\\..\\Users\\.\\AppLocal").normalized "C:\\Users\\AppLocal" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-relative-win32-path +[] > tests-normalizes-relative-win32-path eq. > @ (path.win32 "..\\..\\foo\\bar\\..\\x\\y\\\\").normalized "..\\..\\foo\\x\\y\\" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-empty-win32-driveless-path-to-current-dir +[] > tests-normalizes-empty-win32-driveless-path-to-current-dir eq. > @ (path.win32 "").normalized "." # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-win32-path-down-to-drive-with-separator +[] > tests-normalizes-win32-path-down-to-drive-with-separator eq. > @ (path.win32 "C:\\Windows\\..").normalized "C:\\" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-win32-path-down-to-drive-without-separator +[] > tests-normalizes-win32-path-down-to-drive-without-separator eq. > @ (path.win32 "C:hello\\..").normalized "C:" # This unit test is supposed to check the functionality of the corresponding object. -[] > normalizes-win32-path-with-replacing-slashes +[] > tests-normalizes-win32-path-with-replacing-slashes eq. > @ (path.win32 "/var/www/../html/").normalized "\\var\\html\\" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-posix-absolute-path-against-other-absolute-path +[] > tests-resolves-posix-absolute-path-against-other-absolute-path eq. > @ (path.posix "/var/temp").resolved "/www/html" "/www/html" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-posix-absolute-path-against-other-relative-path +[] > tests-resolves-posix-absolute-path-against-other-relative-path eq. > @ (path.posix "/var/temp").resolved "./www/html" "/var/temp/www/html" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-posix-relative-path-against-other-absolute-path +[] > tests-resolves-posix-relative-path-against-other-absolute-path eq. > @ (path.posix "./var/temp").resolved "/www/html" "/www/html" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-posix-relative-path-against-other-relative-path +[] > tests-resolves-posix-relative-path-against-other-relative-path eq. > @ (path.posix "./var/temp").resolved "../www/html" "var/www/html" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-relative-path-against-other-relative-path +[] > tests-resolves-win32-relative-path-against-other-relative-path eq. > @ (path.win32 ".\\temp\\var").resolved ".\\..\\x" "temp\\x" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-relative-path-against-other-drive-relative-path +[] > tests-resolves-win32-relative-path-against-other-drive-relative-path eq. > @ (path.win32 ".\\temp\\var").resolved "C:\\Windows\\Users" "C:\\Windows\\Users" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-relative-path-against-other-root-relative-path +[] > tests-resolves-win32-relative-path-against-other-root-relative-path eq. > @ (path.win32 ".\\temp\\var").resolved "\\Windows\\Users" "\\Windows\\Users" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-drive-relative-path-against-other-relative-path +[] > tests-resolves-win32-drive-relative-path-against-other-relative-path eq. > @ (path.win32 "C:\\users\\local").resolved ".\\var\\temp" "C:\\users\\local\\var\\temp" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-drive-relative-path-against-other-drive-relative-path +[] > tests-resolves-win32-drive-relative-path-against-other-drive-relative-path eq. > @ (path.win32 "C:\\users\\local").resolved "D:\\local\\var" "D:\\local\\var" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-drive-relative-path-against-other-root-relative-path +[] > tests-resolves-win32-drive-relative-path-against-other-root-relative-path eq. > @ (path.win32 "C:\\users\\local").resolved "\\local\\var" "C:\\local\\var" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-root-relative-path-against-other-relative-path +[] > tests-resolves-win32-root-relative-path-against-other-relative-path eq. > @ (path.win32 "\\users\\local").resolved ".\\hello\\var" "\\users\\local\\hello\\var" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-root-relative-path-against-other-drive-relative-path +[] > tests-resolves-win32-root-relative-path-against-other-drive-relative-path eq. > @ (path.win32 "\\users\\local").resolved "D:\\hello\\var" "D:\\hello\\var" # This unit test is supposed to check the functionality of the corresponding object. -[] > resolves-win32-root-relative-path-against-other-root-relative-path +[] > tests-resolves-win32-root-relative-path-against-other-root-relative-path eq. > @ (path.win32 "\\users\\local").resolved "\\hello\\var" "\\hello\\var" # This unit test is supposed to check the functionality of the corresponding object. -[] > takes-valid-basename +[] > tests-takes-valid-basename eq. > @ basename. path.joined @@ -204,7 +205,7 @@ "hello.eo" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-empty-basename-from-path-ended-with-separator +[] > tests-returns-empty-basename-from-path-ended-with-separator eq. > @ basename. path.joined @@ -212,19 +213,19 @@ "" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-base-with-backslash-in-path-on-posix +[] > tests-returns-base-with-backslash-in-path-on-posix eq. > @ (path.posix "/var/www/html/foo\\bar").basename "foo\\bar" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-the-same-string-if-no-separator-is-found +[] > tests-returns-the-same-string-if-no-separator-is-found eq. > @ (path "Somebody").basename "Somebody" # This unit test is supposed to check the functionality of the corresponding object. -[] > takes-file-extname +[] > tests-takes-file-extname eq. > @ extname. path.joined @@ -232,7 +233,7 @@ ".txt" # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-take-extname-on-file-without-extension +[] > tests-does-not-take-extname-on-file-without-extension eq. > @ extname. path.joined @@ -240,7 +241,7 @@ "" # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-take-extname-if-ends-with-separator +[] > tests-does-not-take-extname-if-ends-with-separator eq. > @ extname. path.joined @@ -248,7 +249,7 @@ "" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-dirname-from-file-path +[] > tests-returns-valid-dirname-from-file-path eq. > @ dirname. path.joined @@ -257,7 +258,7 @@ * "var" "www" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-dirname-from-dir-path +[] > tests-returns-valid-dirname-from-dir-path eq. > @ dirname. path.joined @@ -266,7 +267,7 @@ * "var" "www" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-dirname-from-file-path-without-extension +[] > tests-returns-valid-dirname-from-file-path-without-extension eq. > @ dirname. path.joined diff --git a/tests/org/eolang/fs/tmpdir-tests.eo b/tests/org/eolang/fs/tmpdir-tests.eo index f9d3e99c..c5a77803 100644 --- a/tests/org/eolang/fs/tmpdir-tests.eo +++ b/tests/org/eolang/fs/tmpdir-tests.eo @@ -25,7 +25,8 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.fs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. tmpdir.exists > [] > global-temp-dir-exists diff --git a/tests/org/eolang/go-tests.eo b/tests/org/eolang/go-tests.eo index 139ad643..a4aa759f 100644 --- a/tests/org/eolang/go-tests.eo +++ b/tests/org/eolang/go-tests.eo @@ -24,11 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > goto-jumps-backwards +[] > tests-goto-jumps-backwards eq. > @ malloc.of 8 @@ -49,7 +49,7 @@ 10 # This unit test is supposed to check the functionality of the corresponding object. -[] > goto-jumps-forward +[] > tests-goto-jumps-forward [x] > div malloc.for > @ 0 @@ -72,7 +72,7 @@ 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-from-method-body +[] > tests-returns-from-method-body [a b] > max go.to > @ [g] >> @@ -88,7 +88,7 @@ 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > nested-goto +[] > tests-nested-goto eq. > @ go.to [g1] diff --git a/tests/org/eolang/i16-tests.eo b/tests/org/eolang/i16-tests.eo index 99815b29..70d6a05a 100644 --- a/tests/org/eolang/i16-tests.eo +++ b/tests/org/eolang/i16-tests.eo @@ -24,137 +24,138 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-has-valid-bytes +[] > tests-i16-has-valid-bytes eq. > @ 42.as-i64.as-i32.as-i16.as-bytes 00-2A # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-i16-has-valid-bytes +[] > tests-negative-i16-has-valid-bytes eq. > @ -200.as-i64.as-i32.as-i16.as-bytes FF-38 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-less-true +[] > tests-i16-less-true lt. > @ 10.as-i64.as-i32.as-i16 50.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-less-equal +[] > tests-i16-less-equal not. > @ lt. 10.as-i64.as-i32.as-i16 10.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-less-false +[] > tests-i16-less-false not. > @ lt. 10.as-i64.as-i32.as-i16 -5.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-greater-true +[] > tests-i16-greater-true gt. > @ -200.as-i64.as-i32.as-i16 -1000.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-greater-false +[] > tests-i16-greater-false not. > @ gt. 0.as-i64.as-i32.as-i16 100.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-greater-equal +[] > tests-i16-greater-equal not. > @ gt. 0.as-i64.as-i32.as-i16 0.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-lte-true +[] > tests-i16-lte-true lte. > @ -200.as-i64.as-i32.as-i16 -100.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-lte-equal +[] > tests-i16-lte-equal lte. > @ 50.as-i64.as-i32.as-i16 50.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-lte-false +[] > tests-i16-lte-false not. > @ lte. 0.as-i64.as-i32.as-i16 -10.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-gte-true +[] > tests-i16-gte-true gte. > @ -1000.as-i64.as-i32.as-i16 -1100.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-gte-equal +[] > tests-i16-gte-equal gte. > @ 113.as-i64.as-i32.as-i16 113.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-gte-false +[] > tests-i16-gte-false not. > @ gte. 0.as-i64.as-i32.as-i16 10.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-zero-eq-to-i16-zero +[] > tests-i16-zero-eq-to-i16-zero eq. > @ 0.as-i64.as-i32.as-i16 0.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-eq-true +[] > tests-i16-eq-true eq. > @ 123.as-i64.as-i32.as-i16 123.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-eq-false +[] > tests-i16-eq-false not. > @ eq. 123.as-i64.as-i32.as-i16 42.as-i64.as-i32.as-i16 -# Test -[] > i16-one-plus-i16-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i16-one-plus-i16-one eq. > @ 1.as-i64.as-i32.as-i16.plus 1.as-i64.as-i32.as-i16 2.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-plus-with-overflow +[] > tests-i16-plus-with-overflow eq. > @ 32767.as-i64.as-i32.as-i16.plus 1.as-i64.as-i32.as-i16 -32768.as-i64.as-i32.as-i16 -# Test -[] > i16-one-minus-i16-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i16-one-minus-i16-one eq. > @ 1.as-i64.as-i32.as-i16.minus 1.as-i64.as-i32.as-i16 0.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-minus-with-overflow +[] > tests-i16-minus-with-overflow eq. > @ -32768.as-i64.as-i32.as-i16.minus 1.as-i64.as-i32.as-i16 32767.as-i64.as-i32.as-i16 @@ -164,33 +165,33 @@ # This unit test is supposed to check the functionality of the corresponding object. # Checks that division by one returns the dividend. -[] > i16-div-by-i16-one +[] > tests-i16-div-by-i16-one -235.as-i64.as-i32.as-i16 > dividend eq. > @ dividend.div 1.as-i64.as-i32.as-i16 dividend # This unit test is supposed to check the functionality of the corresponding object. -# Checks div with remainder -[] > i16-div-with-remainder +# Checks div with remainder. +[] > tests-i16-div-with-remainder eq. > @ 13.as-i64.as-i32.as-i16.div -5.as-i64.as-i32.as-i16 -2.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-div-less-than-i16-one +[] > tests-i16-div-less-than-i16-one lt. > @ 1.as-i64.as-i32.as-i16.div 5.as-i64.as-i32.as-i16 1.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-multiply-by-zero +[] > tests-i16-multiply-by-zero eq. > @ 1000.as-i64.as-i32.as-i16.times 0.as-i64.as-i32.as-i16 0.as-i64.as-i32.as-i16 # This unit test is supposed to check the functionality of the corresponding object. -[] > i16-times-with-overflow +[] > tests-i16-times-with-overflow eq. > @ 32767.as-i64.as-i32.as-i16.times 2.as-i64.as-i32.as-i16 -2.as-i64.as-i32.as-i16 diff --git a/tests/org/eolang/i32-tests.eo b/tests/org/eolang/i32-tests.eo index e5beeb33..17317b14 100644 --- a/tests/org/eolang/i32-tests.eo +++ b/tests/org/eolang/i32-tests.eo @@ -24,149 +24,150 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-has-valid-bytes +[] > tests-i32-has-valid-bytes eq. > @ 42.as-i64.as-i32.as-bytes 00-00-00-2A # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-i32-has-valid-bytes +[] > tests-negative-i32-has-valid-bytes eq. > @ -200.as-i64.as-i32.as-bytes FF-FF-FF-38 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-to-i16-and-back +[] > tests-i32-to-i16-and-back eq. > @ 123.as-i64.as-i32 123.as-i64.as-i32.as-i16.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-i32-to-i16-and-back +[] > tests-negative-i32-to-i16-and-back eq. > @ -123.as-i64.as-i32 -123.as-i64.as-i32.as-i16.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-less-true +[] > tests-i32-less-true lt. > @ 10.as-i64.as-i32 50.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-less-equal +[] > tests-i32-less-equal not. > @ lt. 10.as-i64.as-i32 10.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-less-false +[] > tests-i32-less-false not. > @ lt. 10.as-i64.as-i32 -5.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-greater-true +[] > tests-i32-greater-true gt. > @ -200.as-i64.as-i32 -1000.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-greater-false +[] > tests-i32-greater-false not. > @ gt. 0.as-i64.as-i32 100.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-greater-equal +[] > tests-i32-greater-equal not. > @ gt. 0.as-i64.as-i32 0.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-lte-true +[] > tests-i32-lte-true lte. > @ -200.as-i64.as-i32 -100.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-lte-equal +[] > tests-i32-lte-equal lte. > @ 50.as-i64.as-i32 50.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-lte-false +[] > tests-i32-lte-false not. > @ lte. 0.as-i64.as-i32 -10.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-gte-true +[] > tests-i32-gte-true gte. > @ -1000.as-i64.as-i32 -1100.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-gte-equal +[] > tests-i32-gte-equal gte. > @ 113.as-i64.as-i32 113.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-gte-false +[] > tests-i32-gte-false not. > @ gte. 0.as-i64.as-i32 10.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-zero-eq-to-i32-zero +[] > tests-i32-zero-eq-to-i32-zero eq. > @ 0.as-i64.as-i32 0.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-eq-true +[] > tests-i32-eq-true eq. > @ 123.as-i64.as-i32 123.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-eq-false +[] > tests-i32-eq-false not. > @ eq. 123.as-i64.as-i32 42.as-i64.as-i32 -# Test -[] > i32-one-plus-i32-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i32-one-plus-i32-one eq. > @ 1.as-i64.as-i32.plus 1.as-i64.as-i32 2.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-plus-with-overflow +[] > tests-i32-plus-with-overflow eq. > @ 2147483647.as-i64.as-i32.plus 1.as-i64.as-i32 -2147483648.as-i64.as-i32 -# Test -[] > i32-one-minus-i32-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i32-one-minus-i32-one eq. > @ 1.as-i64.as-i32.minus 1.as-i64.as-i32 0.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-minus-with-overflow +[] > tests-i32-minus-with-overflow eq. > @ -2147483648.as-i64.as-i32.minus 1.as-i64.as-i32 2147483647.as-i64.as-i32 @@ -177,35 +178,35 @@ # This unit test is supposed to check the functionality of the corresponding object. 247483647.as-i64.as-i32.as-i16 > [] > throws-on-converting-to-i16-if-out-of-bounds -# This unit test is supposed to check the functionality of the corresponding object. # Checks that division by one returns the dividend. -[] > i32-div-by-i32-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i32-div-by-i32-one -235.as-i64.as-i32 > dividend eq. > @ dividend.div 1.as-i64.as-i32 dividend -# This unit test is supposed to check the functionality of the corresponding object. # Checks div with remainder -[] > i32-div-with-remainder +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i32-div-with-remainder eq. > @ 13.as-i64.as-i32.div -5.as-i64.as-i32 -2.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-div-less-than-i32-one +[] > tests-i32-div-less-than-i32-one lt. > @ 1.as-i64.as-i32.div 5.as-i64.as-i32 1.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-multiply-by-zero +[] > tests-i32-multiply-by-zero eq. > @ 1000.as-i64.as-i32.times 0.as-i64.as-i32 0.as-i64.as-i32 # This unit test is supposed to check the functionality of the corresponding object. -[] > i32-times-with-overflow +[] > tests-i32-times-with-overflow eq. > @ 2147483647.as-i64.as-i32.times 2.as-i64.as-i32 -2.as-i64.as-i32 diff --git a/tests/org/eolang/i64-tests.eo b/tests/org/eolang/i64-tests.eo index a4342c96..bf4d2e1e 100644 --- a/tests/org/eolang/i64-tests.eo +++ b/tests/org/eolang/i64-tests.eo @@ -24,29 +24,30 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-has-valid-bytes +[] > tests-i64-has-valid-bytes eq. > @ 42.as-i64.as-bytes 00-00-00-00-00-00-00-2A # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-as-bytes-is-not-equal-to-number-bytes +[] > tests-i64-as-bytes-is-not-equal-to-number-bytes not. > @ eq. i64 234.as-bytes 234.as-i64.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-to-i32-and-back +[] > tests-i64-to-i32-and-back eq. > @ 234.as-i64 234.as-i64.as-i32.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-i64-to-i32-and-back +[] > tests-negative-i64-to-i32-and-back eq. > @ -234.as-i64 -234.as-i64.as-i32.as-i64 @@ -55,110 +56,110 @@ 3147483647.as-i64.as-i32 > [] > throws-on-converting-to-i32-if-out-of-bounds # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-less-true +[] > tests-i64-less-true lt. > @ 10.as-i64 50.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-less-equal +[] > tests-i64-less-equal not. > @ lt. 10.as-i64 10.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-less-false +[] > tests-i64-less-false not. > @ lt. 10.as-i64 -5.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-greater-true +[] > tests-i64-greater-true gt. > @ -200.as-i64 -1000.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-greater-false +[] > tests-i64-greater-false not. > @ gt. 0.as-i64 100.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-greater-equal +[] > tests-i64-greater-equal not. > @ gt. 0.as-i64 0.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-lte-true +[] > tests-i64-lte-true lte. > @ -200.as-i64 -100.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-lte-equal +[] > tests-i64-lte-equal lte. > @ 50.as-i64 50.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-lte-false +[] > tests-i64-lte-false not. > @ lte. 0.as-i64 -10.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-gte-true +[] > tests-i64-gte-true gte. > @ -1000.as-i64 -1100.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-gte-equal +[] > tests-i64-gte-equal gte. > @ 113.as-i64 113.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-gte-false +[] > tests-i64-gte-false not. > @ gte. 0.as-i64 10.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-zero-eq-to-i64-zero +[] > tests-i64-zero-eq-to-i64-zero eq. > @ 0.as-i64 0.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-eq-true +[] > tests-i64-eq-true eq. > @ 123.as-i64 123.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-eq-false +[] > tests-i64-eq-false not. > @ eq. 123.as-i64 42.as-i64 -# Test -[] > i64-one-plus-i64-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i64-one-plus-i64-one eq. > @ 1.as-i64.plus 1.as-i64 2.as-i64 -# Test -[] > i64-one-minus-i64-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i64-one-minus-i64-one eq. > @ 1.as-i64.minus 1.as-i64 0.as-i64 @@ -167,26 +168,27 @@ 2.as-i64.div 0.as-i64 > [] > throws-on-division-i64-by-i64-zero # Checks that division by one returns the dividend. -[] > i64-div-by-i64-one +[] > tests-i64-div-by-i64-one -235.as-i64 > dividend eq. > @ dividend.div 1.as-i64 dividend # Checks div with remainder -[] > i64-div-with-remainder +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-i64-div-with-remainder eq. > @ 13.as-i64.div -5.as-i64 -2.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-div-less-than-i64-one +[] > tests-i64-div-less-than-i64-one lt. > @ 1.as-i64.div 5.as-i64 1.as-i64 # This unit test is supposed to check the functionality of the corresponding object. -[] > i64-multiply-by-zero +[] > tests-i64-multiply-by-zero eq. > @ 1000.as-i64.times 0.as-i64 0.as-i64 diff --git a/tests/org/eolang/io/bytes-as-input-test.eo b/tests/org/eolang/io/bytes-as-input-tests.eo similarity index 96% rename from tests/org/eolang/io/bytes-as-input-test.eo rename to tests/org/eolang/io/bytes-as-input-tests.eo index 5f109413..b4ce712d 100644 --- a/tests/org/eolang/io/bytes-as-input-test.eo +++ b/tests/org/eolang/io/bytes-as-input-tests.eo @@ -25,10 +25,10 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # This unit test is supposed to check the functionality of the corresponding object. -[] > makes-an-input-from-bytes-and-reads +[] > tests-makes-an-input-from-bytes-and-reads bytes-as-input > i 01-02-03-04-05-06-07-08-F5-F6 i.read 4 > i1 diff --git a/tests/org/eolang/io/console-test.eo b/tests/org/eolang/io/console-tests.eo similarity index 95% rename from tests/org/eolang/io/console-test.eo rename to tests/org/eolang/io/console-tests.eo index dee6955c..d6fdaf73 100644 --- a/tests/org/eolang/io/console-test.eo +++ b/tests/org/eolang/io/console-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # Prints a simple message to the console. We can't validate # the output, so we just run it and see if it crashes. -[] > writes-to-console +[] > tests-writes-to-console console.write > @ "Hello, console-test!\n" diff --git a/tests/org/eolang/io/dead-input-tests.eo b/tests/org/eolang/io/dead-input-tests.eo index 9ea5d0c1..7140ac80 100644 --- a/tests/org/eolang/io/dead-input-tests.eo +++ b/tests/org/eolang/io/dead-input-tests.eo @@ -25,10 +25,10 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-empty-bytes +[] > tests-reads-empty-bytes dead-input.read 10 > i1 i1.read 10 > i2 and. > @ diff --git a/tests/org/eolang/io/dead-output-tests.eo b/tests/org/eolang/io/dead-output-tests.eo index 2bdb478e..af248dc6 100644 --- a/tests/org/eolang/io/dead-output-tests.eo +++ b/tests/org/eolang/io/dead-output-tests.eo @@ -25,7 +25,8 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. dead-output.write 01-02-03 > [] > writes-bytes-to-nowhere diff --git a/tests/org/eolang/io/input-length-tests.eo b/tests/org/eolang/io/input-length-tests.eo index 27fe8f3c..5a5f5032 100644 --- a/tests/org/eolang/io/input-length-tests.eo +++ b/tests/org/eolang/io/input-length-tests.eo @@ -20,18 +20,19 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.io.input-length +alias org.eolang.io.bytes-as-input -+alias org.eolang.io.tee-input ++alias org.eolang.io.input-length +alias org.eolang.io.malloc-as-output ++alias org.eolang.io.tee-input +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-all-bytes-and-returns-length +[] > tests-reads-all-bytes-and-returns-length eq. > @ input-length bytes-as-input @@ -39,7 +40,7 @@ 10 # This unit test is supposed to check the functionality of the corresponding object. -[] > copies-all-bytes-to-output-and-returns-length +[] > tests-copies-all-bytes-to-output-and-returns-length eq. > @ malloc.of 10 diff --git a/tests/org/eolang/io/malloc-as-output-test.eo b/tests/org/eolang/io/malloc-as-output-tests.eo similarity index 95% rename from tests/org/eolang/io/malloc-as-output-test.eo rename to tests/org/eolang/io/malloc-as-output-tests.eo index 18a4bc34..7269b51f 100644 --- a/tests/org/eolang/io/malloc-as-output-test.eo +++ b/tests/org/eolang/io/malloc-as-output-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > makes-an-output-from-malloc-and-writes +[] > tests-makes-an-output-from-malloc-and-writes eq. > @ malloc.of 10 diff --git a/tests/org/eolang/io/stdout-test.eo b/tests/org/eolang/io/stdout-tests.eo similarity index 95% rename from tests/org/eolang/io/stdout-test.eo rename to tests/org/eolang/io/stdout-tests.eo index 244f98f4..c6d7146c 100644 --- a/tests/org/eolang/io/stdout-test.eo +++ b/tests/org/eolang/io/stdout-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # Prints a simple message to the console. We can't validate # the output, so we just run it and see if it crashes. -[] > prints-to-console +[] > tests-prints-to-console stdout > @ "Hello, stdout-test!\n" diff --git a/tests/org/eolang/io/tee-input-tests.eo b/tests/org/eolang/io/tee-input-tests.eo index 99b2653c..e6e9af16 100644 --- a/tests/org/eolang/io/tee-input-tests.eo +++ b/tests/org/eolang/io/tee-input-tests.eo @@ -20,18 +20,18 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.io.tee-input +alias org.eolang.io.bytes-as-input +alias org.eolang.io.malloc-as-output ++alias org.eolang.io.tee-input +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.io -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-bytes-and-writes-to-memory +[] > tests-reads-from-bytes-and-writes-to-memory eq. > @ malloc.of 5 @@ -44,7 +44,7 @@ 01-02-03-04-05 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-bytes-and-writes-to-memory-by-portions +[] > tests-reads-from-bytes-and-writes-to-memory-by-portions eq. > @ malloc.of 5 @@ -61,7 +61,7 @@ 01-02-03-04-05 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-from-bytes-and-writes-to-two-memory-blocks +[] > tests-reads-from-bytes-and-writes-to-two-memory-blocks eq. > @ malloc.of 6 diff --git a/tests/org/eolang/malloc-tests.eo b/tests/org/eolang/malloc-tests.eo index 7fd0a378..afcc4990 100644 --- a/tests/org/eolang/malloc-tests.eo +++ b/tests/org/eolang/malloc-tests.eo @@ -24,11 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > writes-into-memory-of +[] > tests-writes-into-memory-of malloc.of > mem 8 [m] @@ -39,14 +39,14 @@ mem.eq 10 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > puts-into-memory-for +[] > tests-puts-into-memory-for malloc.for > mem 0 m.put 10 > [m] mem.eq 10 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-size-from-scope +[] > tests-returns-size-from-scope eq. > @ malloc.of 5 @@ -54,7 +54,7 @@ 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-scope-is-dataized-twice +[] > tests-malloc-scope-is-dataized-twice eq. > @ 2 malloc.for @@ -69,7 +69,7 @@ second # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-for-writes-first-init-value +[] > tests-malloc-for-writes-first-init-value eq. > @ malloc.for 42 @@ -77,7 +77,7 @@ 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-puts-over-the-previous-data +[] > tests-malloc-puts-over-the-previous-data malloc.of > mem 13 [m] @@ -91,7 +91,7 @@ mem # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-rewrites-and-increments-itself +[] > tests-malloc-rewrites-and-increments-itself malloc.of > mem 8 [m] @@ -102,7 +102,7 @@ mem.eq 6 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > writes-into-two-malloc-objects +[] > tests-writes-into-two-malloc-objects malloc.of > a 8 m.put 10 > [m] @@ -126,7 +126,7 @@ m.put "Much longer string!" > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-is-strictly-sized-int +[] > tests-malloc-is-strictly-sized-int eq. > @ malloc.for 12248 @@ -134,7 +134,7 @@ 2556 # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-is-strictly-typed-float +[] > tests-malloc-is-strictly-typed-float eq. > @ malloc.for 245.88 @@ -142,7 +142,7 @@ 82.22 # This unit test is supposed to check the functionality of the corresponding object. -[] > memory-is-strictly-sized-string +[] > tests-memory-is-strictly-sized-string eq. > @ malloc.for "Hello" @@ -150,19 +150,19 @@ "Proto" # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-is-strictly-typed-bool +[] > tests-malloc-is-strictly-typed-bool malloc.for > @ false m.put true > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-gives-id-to-allocated-block +[] > tests-malloc-gives-id-to-allocated-block malloc.of > @ 1 m.put (m.id.gt 0) > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-allocates-right-size-block +[] > tests-malloc-allocates-right-size-block malloc.of > @ 1 [b] @@ -171,7 +171,7 @@ b.put (m.size.eq 10) > [m] >> # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-writes-and-reads +[] > tests-malloc-writes-and-reads malloc.of > @ 1 [b] @@ -188,7 +188,7 @@ "Hello, Jeff!" # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-concacts-strings-with-offset +[] > tests-malloc-concacts-strings-with-offset malloc.of > @ 1 [b] @@ -209,7 +209,7 @@ m.write 1 true > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-reads-with-offset-and-length +[] > tests-malloc-reads-with-offset-and-length malloc.of > @ 1 [b] @@ -222,8 +222,8 @@ b.put (m.read 2 5).eq "Hello" -# Creates memory block of zero bytes (this should be a legal operation) -[] > allocates-zero-bytes +# Creates memory block of zero bytes (this should be a legal operation). +[] > tests-allocates-zero-bytes eq. > @ 0 malloc.of @@ -231,7 +231,7 @@ m.size > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-increases-block-size +[] > tests-malloc-increases-block-size malloc.of > @ 1 [b] @@ -244,7 +244,7 @@ m.get.eq 01-02-03-04-00-00 # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-decreases-block-size +[] > tests-malloc-decreases-block-size malloc.of > @ 1 [b] @@ -263,12 +263,12 @@ m.resized -1 > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > malloc-empty-is-empty +[] > tests-malloc-empty-is-empty malloc.empty > @ m.size.eq 0 > [m] # This unit test is supposed to check the functionality of the corresponding object. -[] > copies-data-inside-itself +[] > tests-copies-data-inside-itself malloc.for > @ 01-02-03-04-05 [m] @@ -277,7 +277,7 @@ m.get.eq 01-02-02-03-05 # This unit test is supposed to check the functionality of the corresponding object. -[] > copies-data-from-start-to-end +[] > tests-copies-data-from-start-to-end malloc.for > @ 01-02-03-04-05-06 [m] diff --git a/tests/org/eolang/math/angle-tests.eo b/tests/org/eolang/math/angle-tests.eo index 4f7526b9..1f7f2093 100644 --- a/tests/org/eolang/math/angle-tests.eo +++ b/tests/org/eolang/math/angle-tests.eo @@ -20,46 +20,47 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.math.pi +alias org.eolang.math.angle ++alias org.eolang.math.pi +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > sin-zero +[] > tests-sin-zero eq. > @ (angle 0).sin 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > sin-pi-div-2 +[] > tests-sin-pi-div-2 eq. > @ (angle (pi.div 2)).sin 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > sin-pi-floored +[] > tests-sin-pi-floored eq. > @ (angle pi).sin.floor 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > cos-zero +[] > tests-cos-zero eq. > @ (angle 0).cos 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > cos-pi-div-2-floored +[] > tests-cos-pi-div-2-floored eq. > @ (angle (pi.div 2)).cos.floor 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > cos-pi +[] > tests-cos-pi eq. > @ (angle pi).cos -1 diff --git a/tests/org/eolang/math/integral-tests.eo b/tests/org/eolang/math/integral-tests.eo index ad80bfef..818af477 100644 --- a/tests/org/eolang/math/integral-tests.eo +++ b/tests/org/eolang/math/integral-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-lineal-integral +[] > tests-calculates-lineal-integral as-number. > lineal integral x > [x] @@ -55,7 +56,7 @@ value.neg # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-quadratic-integral +[] > tests-calculates-quadratic-integral as-number. > quadratic integral x.times x > [x] @@ -82,7 +83,7 @@ value.neg # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-cube-integral +[] > tests-calculates-cube-integral as-number. > cube integral (x.times x).times x > [x] diff --git a/tests/org/eolang/math/numbers-tests.eo b/tests/org/eolang/math/numbers-tests.eo index a04d0be4..0ac1d1f6 100644 --- a/tests/org/eolang/math/numbers-tests.eo +++ b/tests/org/eolang/math/numbers-tests.eo @@ -25,7 +25,8 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. (numbers *).max > [] > throws-on-taking-max-from-empty-sequence-of-numbers @@ -34,49 +35,49 @@ (numbers *).min > [] > throws-on-taking-min-from-empty-sequence-of-numbers # This unit test is supposed to check the functionality of the corresponding object. -[] > max-of-one-item-array +[] > tests-max-of-one-item-array eq. > @ (numbers (* 42)).max 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > min-of-one-item-array +[] > tests-min-of-one-item-array eq. > @ (numbers (* 42)).min 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > max-of-array-is-first +[] > tests-max-of-array-is-first eq. > @ (numbers (* 25 12 -2)).max 25 # This unit test is supposed to check the functionality of the corresponding object. -[] > max-of-array-is-in-the-center +[] > tests-max-of-array-is-in-the-center eq. > @ (numbers (* 12 25 -2)).max 25 # This unit test is supposed to check the functionality of the corresponding object. -[] > max-of-array-is-last +[] > tests-max-of-array-is-last eq. > @ (numbers (* 12 -2 25)).max 25 # This unit test is supposed to check the functionality of the corresponding object. -[] > min-of-array-is-first +[] > tests-min-of-array-is-first eq. > @ (numbers (* -2 25 12)).min -2 # This unit test is supposed to check the functionality of the corresponding object. -[] > min-of-array-is-in-the-center +[] > tests-min-of-array-is-in-the-center eq. > @ (numbers (* 12 -2 25)).min -2 # This unit test is supposed to check the functionality of the corresponding object. -[] > min-of-array-is-last +[] > tests-min-of-array-is-last eq. > @ (numbers (* 12 25 -2)).min -2 diff --git a/tests/org/eolang/math/random-tests.eo b/tests/org/eolang/math/random-tests.eo index 81fffa57..97116387 100644 --- a/tests/org/eolang/math/random-tests.eo +++ b/tests/org/eolang/math/random-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > random-with-seed +[] > tests-random-with-seed random 51 > r not. > @ eq. @@ -36,13 +37,13 @@ r.next.next # This unit test is supposed to check the functionality of the corresponding object. -[] > seeded-randoms-are-equal +[] > tests-seeded-randoms-are-equal eq. > @ (random 1654).next.next.next (random 1654).next.next.next # This unit test is supposed to check the functionality of the corresponding object. -[] > random-is-in-range +[] > tests-random-is-in-range (random 123).fixed > r and. > @ and. @@ -57,6 +58,6 @@ (r.next.next.lt 0).not # This unit test is supposed to check the functionality of the corresponding object. -[] > two-random-numbers-not-equal +[] > tests-two-random-numbers-not-equal not. > @ random.pseudo.eq random.pseudo diff --git a/tests/org/eolang/math/real-tests.eo b/tests/org/eolang/math/real-tests.eo index ce9044a0..43f72fb7 100644 --- a/tests/org/eolang/math/real-tests.eo +++ b/tests/org/eolang/math/real-tests.eo @@ -27,72 +27,73 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.math -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > abs-int-positive +[] > tests-abs-int-positive eq. > @ (real 3).abs 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > abs-int-negative +[] > tests-abs-int-negative eq. > @ (real -3).abs 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > abs-zero +[] > tests-abs-zero eq. > @ (real 0).abs 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > abs-float-positive +[] > tests-abs-float-positive eq. > @ (real 13.5).abs 13.5 # This unit test is supposed to check the functionality of the corresponding object. -[] > abs-float-negative +[] > tests-abs-float-negative eq. > @ (real -17.9).abs 17.9 # This unit test is supposed to check the functionality of the corresponding object. -[] > mod-1-2 +[] > tests-mod-n1-n2 eq. > @ (real 1).mod 2 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > mod-0-5 +[] > tests-mod-n0-n5 eq. > @ (real 0).mod 5 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > mod-0-15-neg +[] > tests-mod-n0-n15-neg eq. > @ (real 0).mod -15 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > mod-1-neg-7 +[] > tests-mod-n1-neg-n7 eq. > @ (real -1).mod 7 -1 # This unit test is supposed to check the functionality of the corresponding object. -[] > mod-16-200-neg +[] > tests-mod-n16-n200-neg eq. > @ (real 16).mod -200 16 # This unit test is supposed to check the functionality of the corresponding object. # Checks mathematical equality -# A = ((A div B) * B) + (A mod B) -[] > div-mod-compatibility +# A = ((A div B) * B) + (A mod B). +[] > tests-div-mod-compatibility -13 > dividend 5 > divisor (real dividend).mod divisor > remainder @@ -107,44 +108,44 @@ # This unit test is supposed to check the functionality of the corresponding object. # Checks modulo: dividend < divisor. -[] > mod-dividend-less-than-divisor +[] > tests-mod-dividend-less-than-divisor eq. > @ (real -1).mod 5 -1 # This unit test is supposed to check the functionality of the corresponding object. # Checks modulo by 1. -[] > mod-dividend-by-one +[] > tests-mod-dividend-by-one eq. > @ (real 133).mod 1 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > pow-test +[] > tests-pow-test eq. > @ (real 2).pow 4 16 # This unit test is supposed to check the functionality of the corresponding object. -[] > pow-is-zero +[] > tests-pow-is-zero eq. > @ (real 2).pow 0 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > pow-is-negative +[] > tests-pow-is-negative eq. > @ (real 984782).pow -12341 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > pow-of-two +[] > tests-pow-of-two eq. > @ (real 3).pow 2 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > pow-of-zero +[] > tests-pow-of-zero eq. > @ (real 0).pow 145 0 @@ -155,217 +156,217 @@ # This unit test is supposed to check the functionality of the corresponding object. # Check pow works with NaNs. -[] > nan-to-the-pow-of-nan-is-nan +[] > tests-nan-to-the-pow-of-nan-is-nan is-nan. > @ (real nan).pow nan # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-to-the-pow-of-any-is-nan +[] > tests-nan-to-the-pow-of-any-is-nan is-nan. > @ (real nan).pow 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > any-to-the-pow-of-nan-is-nan +[] > tests-any-to-the-pow-of-nan-is-nan is-nan. > @ (real 52).pow nan # This unit test is supposed to check the functionality of the corresponding object. # Check if pow is zero. -[] > any-int-to-the-pow-of-zero-is-one +[] > tests-any-int-to-the-pow-of-zero-is-one eq. > @ (real 42).pow 0 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > any-float-to-the-pow-of-zero-is-one +[] > tests-any-float-to-the-pow-of-zero-is-one eq. > @ (real 42.5).pow 0 1 # This unit test is supposed to check the functionality of the corresponding object. -# Check if pow is less than zero -[] > zero-to-the-negative-pow-is-positive-infinity +# Check if pow is less than zero. +[] > tests-zero-to-the-negative-pow-is-positive-infinity eq. > @ (real 0).pow -52 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > zero-to-the-negative-infinity-pow-is-positive-infinity +[] > tests-zero-to-the-negative-infinity-pow-is-positive-infinity eq. > @ (real 0).pow negative-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-int-to-the-pow-of-negative-infinity-is-zero +[] > tests-positive-int-to-the-pow-of-negative-infinity-is-zero eq. > @ (real 42).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-float-to-the-pow-of-negative-infinity-is-zero +[] > tests-positive-float-to-the-pow-of-negative-infinity-is-zero eq. > @ (real 42.5).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-int-to-the-pow-of-negative-infinity-is-zero +[] > tests-negative-int-to-the-pow-of-negative-infinity-is-zero eq. > @ (real -42).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-float-to-the-pow-of-negative-infinity-is-zero +[] > tests-negative-float-to-the-pow-of-negative-infinity-is-zero eq. > @ (real -42.5).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-pow-of-negative-infinity-is-zero +[] > tests-positive-infinity-to-the-pow-of-negative-infinity-is-zero eq. > @ (real positive-infinity).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-to-the-pow-of-negative-infinity-is-zero +[] > tests-negative-infinity-to-the-pow-of-negative-infinity-is-zero eq. > @ (real negative-infinity).pow negative-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-finite-negative-int-pow-is-zero +[] > tests-positive-infinity-to-the-finite-negative-int-pow-is-zero eq. > @ (real positive-infinity).pow -42 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-finite-negative-float-pow-is-zero +[] > tests-positive-infinity-to-the-finite-negative-float-pow-is-zero eq. > @ (real positive-infinity).pow -42.2 0.0 # This unit test is supposed to check the functionality of the corresponding object. -[] > two-to-the-pow-of-minus-one +[] > tests-two-to-the-pow-of-minus-one eq. > @ (real 2).pow -1 0.5 # This unit test is supposed to check the functionality of the corresponding object. -[] > two-to-the-pow-of-int-minus-two +[] > tests-two-to-the-pow-of-int-minus-two eq. > @ (real 2).pow -2 0.25 # This unit test is supposed to check the functionality of the corresponding object. -[] > two-to-the-pow-of-minus-three +[] > tests-two-to-the-pow-of-minus-three eq. > @ (real 2).pow -3 0.125 # This unit test is supposed to check the functionality of the corresponding object. -[] > four-to-the-pow-of-minus-three +[] > tests-four-to-the-pow-of-minus-three eq. > @ (real 4).pow -3.0 0.015625 # This unit test is supposed to check the functionality of the corresponding object. # Check if pow more than zero. -[] > zero-to-the-pow-of-positive-int-is-zero +[] > tests-zero-to-the-pow-of-positive-int-is-zero eq. > @ (real 0).pow 4 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > zero-to-the-pow-of-positive-float-is-zero +[] > tests-zero-to-the-pow-of-positive-float-is-zero eq. > @ (real 0).pow 4.2 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > zero-to-the-pow-of-positive-infinity-is-zero +[] > tests-zero-to-the-pow-of-positive-infinity-is-zero eq. > @ (real 0).pow positive-infinity 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-int-to-the-pow-of-positive-infinity-is-positive-infinity +[] > tests-negative-int-to-the-pow-of-positive-infinity-is-positive-infinity eq. > @ (real -10).pow positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-float-to-the-pow-of-positive-infinity-is-infinity +[] > tests-negative-float-to-the-pow-of-positive-infinity-is-infinity eq. > @ (real -4.2).pow positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-int-to-the-pow-of-positive-infinity-is-positive-infinity +[] > tests-positive-int-to-the-pow-of-positive-infinity-is-positive-infinity eq. > @ (real 42).pow positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-float-to-the-pow-of-positive-infinity-is-positive-infinity +[] > tests-positive-float-to-the-pow-of-positive-infinity-is-positive-infinity eq. > @ (real 42.5).pow positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-pow-of-positive-int-is-positive-infinity +[] > tests-positive-infinity-to-the-pow-of-positive-int-is-positive-infinity eq. > @ (real positive-infinity).pow 42 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-pow-of-positive-float-is-positive-infinity +[] > tests-positive-infinity-to-the-pow-of-positive-float-is-positive-infinity eq. > @ (real positive-infinity).pow 10.8 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-to-the-pow-of-positive-infinity-is-positive-infinity +[] > tests-positive-infinity-to-the-pow-of-positive-infinity-is-positive-infinity eq. > @ (real positive-infinity).pow positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-to-the-pow-of-positive-float-is-positive-infinity +[] > tests-negative-infinity-to-the-pow-of-positive-float-is-positive-infinity eq. > @ (real negative-infinity).pow 9.9 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-to-the-pow-of-even-positive-int-is-positive-infinity +[] > tests-negative-infinity-to-the-pow-of-even-positive-int-is-positive-infinity eq. > @ (real negative-infinity).pow 10 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-to-the-pow-of-odd-positive-int-is-positive-infinity +[] > tests-negative-infinity-to-the-pow-of-odd-positive-int-is-positive-infinity eq. > @ (real negative-infinity).pow 9 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-int-to-the-pow-of-positive-int-is-int +[] > tests-positive-int-to-the-pow-of-positive-int-is-int eq. > @ (real 2).pow 3 8 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-float-to-the-pow-of-positive-int-is-float +[] > tests-positive-float-to-the-pow-of-positive-int-is-float eq. > @ (real 3.5).pow 4 150.0625 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-int-to-the-pow-of-positive-float-is-float +[] > tests-positive-int-to-the-pow-of-positive-float-is-float eq. > @ (real 4).pow 5 1024 # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-zero-input +[] > tests-sqrt-check-zero-input lt. > @ abs. real @@ -376,13 +377,13 @@ 0.00000000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-negative-input +[] > tests-sqrt-check-negative-input is-nan. > @ sqrt. real -0.1 # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-float-input +[] > tests-sqrt-check-float-input lt. > @ abs. real @@ -394,7 +395,7 @@ 0.00000000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-int-input +[] > tests-sqrt-check-int-input lt. > @ abs. real @@ -406,87 +407,87 @@ 0.00000000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-nan-input +[] > tests-sqrt-check-nan-input is-nan. > @ sqrt. real nan # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-infinity-1 +[] > tests-sqrt-check-infinity-n1 eq. > @ sqrt. real positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > sqrt-check-infinity-2 +[] > tests-sqrt-check-infinity-n2 is-nan. > @ sqrt. real negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-negative-float-is-nan +[] > tests-ln-of-negative-float-is-nan is-nan. > @ ln. real -2.2 # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-zero-is-negative-infinity +[] > tests-ln-of-zero-is-negative-infinity eq. > @ ln. real 0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-one-is-zero +[] > tests-ln-of-one-is-zero eq. > @ ln. real 1 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-e-one-is-one +[] > tests-ln-of-e-one-is-one eq. > @ ln. real e 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-negative-int-is-nan +[] > tests-ln-of-negative-int-is-nan is-nan. > @ ln. real -42 # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-int-zero-is-negative-infinity +[] > tests-ln-of-int-zero-is-negative-infinity eq. > @ ln. real 0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-int-one-is-zero +[] > tests-ln-of-int-one-is-zero eq. > @ ln. real 1 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > ln-of-twenty +[] > tests-ln-of-twenty eq. > @ ln. real 20 2.995732273553991 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-negative-one-test +[] > tests-arccos-negative-one-test eq. > @ acos. real -1.0 pi # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-zero-test +[] > tests-arccos-zero-test eq. > @ acos. real 0 @@ -495,14 +496,14 @@ 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-one-test +[] > tests-arccos-one-test eq. > @ acos. real 1.0 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-positive-calculated-test +[] > tests-arccos-positive-calculated-test lt. > @ abs. real @@ -513,7 +514,7 @@ 0.000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-negative-calculated-test +[] > tests-arccos-negative-calculated-test lt. > @ abs. real @@ -524,18 +525,18 @@ 0.000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-nan-positive-value-test +[] > tests-arccos-nan-positive-value-test is-nan. > @ acos. real 2.0 # This unit test is supposed to check the functionality of the corresponding object. -[] > arccos-nan-negative-value-test +[] > tests-arccos-nan-negative-value-test is-nan. > @ (real -2.0).acos # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-0 +[] > tests-exp-check-n0 lt. > @ abs. real @@ -545,7 +546,7 @@ 0.00000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-1 +[] > tests-exp-check-n1 lt. > @ abs. real @@ -555,7 +556,7 @@ 0.00000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-2 +[] > tests-exp-check-n2 lt. > @ abs. real @@ -565,7 +566,7 @@ 0.00000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-3 +[] > tests-exp-check-n3 lt. > @ abs. real @@ -575,7 +576,7 @@ 0.0000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-4 +[] > tests-exp-check-n4 lt. > @ abs. real @@ -585,18 +586,18 @@ 0.000000000001 # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-nan +[] > tests-exp-check-nan is-nan. > @ (real nan).exp # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-infinity-1 +[] > tests-exp-check-infinity-n1 eq. > @ (real positive-infinity).exp positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > exp-check-infinity-2 +[] > tests-exp-check-infinity-n2 eq. > @ (real negative-infinity).exp 0 diff --git a/tests/org/eolang/nan-tests.eo b/tests/org/eolang/nan-tests.eo index 794b7f21..edee3738 100644 --- a/tests/org/eolang/nan-tests.eo +++ b/tests/org/eolang/nan-tests.eo @@ -24,126 +24,127 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-eq-number +[] > tests-nan-not-eq-number not. > @ eq. nan 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-eq-nan +[] > tests-nan-not-eq-nan not. > @ eq. nan nan # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-lt-number +[] > tests-nan-not-lt-number eq. > @ nan.lt 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-lt-nan +[] > tests-nan-not-lt-nan eq. > @ nan.lt nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-lte-number +[] > tests-nan-not-lte-number eq. > @ nan.lte 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-lte-nan +[] > tests-nan-not-lte-nan eq. > @ nan.lte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-gt-number +[] > tests-nan-not-gt-number eq. > @ nan.gt 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-gt-nan +[] > tests-nan-not-gt-nan eq. > @ nan.gt nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-gte-number +[] > tests-nan-not-gte-number eq. > @ nan.gte 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-not-gte-nan +[] > tests-nan-not-gte-nan eq. > @ nan.gte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-times-number-is-nan +[] > tests-nan-times-number-is-nan eq. > @ (nan.times 42).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-times-nan-is-nan +[] > tests-nan-times-nan-is-nan eq. > @ (nan.times nan).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-div-number-is-nan +[] > tests-nan-div-number-is-nan eq. > @ (nan.div 42).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-div-nan-is-nan +[] > tests-nan-div-nan-is-nan eq. > @ (nan.div nan).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-plus-number-is-nan +[] > tests-nan-plus-number-is-nan eq. > @ (nan.plus 42).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-plus-nan-is-nan +[] > tests-nan-plus-nan-is-nan eq. > @ (nan.plus nan).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-neg-is-nan +[] > tests-nan-neg-is-nan eq. > @ nan.neg.as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-minus-number-is-nan +[] > tests-nan-minus-number-is-nan eq. > @ (nan.minus 42).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-minus-nan-is-nan +[] > tests-nan-minus-nan-is-nan eq. > @ (nan.minus nan).as-bytes nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > nan-as-bytes-is-bytes-of-zero-div-zero +[] > tests-nan-as-bytes-is-bytes-of-zero-div-zero eq. > @ nan.as-bytes (0.0.div 0.0).as-bytes diff --git a/tests/org/eolang/negative-infinity-tests.eo b/tests/org/eolang/negative-infinity-tests.eo index 3d0a2212..6c517c99 100644 --- a/tests/org/eolang/negative-infinity-tests.eo +++ b/tests/org/eolang/negative-infinity-tests.eo @@ -24,420 +24,426 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # Equal to. -[] > negative-infinity-is-equal-to-one-div-zero +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-negative-infinity-is-equal-to-one-div-zero eq. > @ negative-infinity -1.0.div 0.0 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-eq-negative-infinity +[] > tests-negative-infinity-eq-negative-infinity eq. > @ negative-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-eq-positive-infinity +[] > tests-negative-infinity-not-eq-positive-infinity not. > @ eq. negative-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-eq-nan +[] > tests-negative-infinity-not-eq-nan not. > @ eq. negative-infinity nan # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-eq-int +[] > tests-negative-infinity-not-eq-int not. > @ eq. negative-infinity 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-eq-float +[] > tests-negative-infinity-not-eq-float not. > @ eq. negative-infinity 42.5 # Less than. -[] > negative-infinity-lt-negative-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-negative-infinity-lt-negative-infinity eq. > @ negative-infinity.lt negative-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lt-positive-infinity +[] > tests-negative-infinity-lt-positive-infinity eq. > @ negative-infinity.lt positive-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-lt-nan +[] > tests-negative-infinity-not-lt-nan eq. > @ negative-infinity.lt nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lt-int +[] > tests-negative-infinity-lt-int lt. > @ negative-infinity 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lt-float +[] > tests-negative-infinity-lt-float lt. > @ negative-infinity 42.5 # Less or equal than. -[] > negative-infinity-lte-negative-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-negative-infinity-lte-negative-infinity eq. > @ negative-infinity.lte negative-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lte-positive-infinity +[] > tests-negative-infinity-lte-positive-infinity eq. > @ negative-infinity.lte positive-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-lte-nan +[] > tests-negative-infinity-not-lte-nan eq. > @ negative-infinity.lte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lte-int +[] > tests-negative-infinity-lte-int eq. > @ negative-infinity.lte 42 true # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-lte-float +[] > tests-negative-infinity-lte-float eq. > @ negative-infinity.lte 42.5 true # Greater than. -[] > negative-infinity-gt-negative-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-negative-infinity-gt-negative-infinity not. > @ gt. negative-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gt-positive-infinity +[] > tests-negative-infinity-not-gt-positive-infinity eq. > @ negative-infinity.gt positive-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gt-nan +[] > tests-negative-infinity-not-gt-nan eq. > @ negative-infinity.gt nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gt-int +[] > tests-negative-infinity-not-gt-int eq. > @ negative-infinity.gt 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gt-float +[] > tests-negative-infinity-not-gt-float eq. > @ negative-infinity.gt 42.5 false # Greater or equal than. -[] > negative-infinity-gte-negative-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-negative-infinity-gte-negative-infinity eq. > @ negative-infinity.gte negative-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gte-positive-infinity +[] > tests-negative-infinity-not-gte-positive-infinity eq. > @ negative-infinity.gte positive-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gte-nan +[] > tests-negative-infinity-not-gte-nan eq. > @ negative-infinity.gte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gte-int +[] > tests-negative-infinity-not-gte-int eq. > @ negative-infinity.gte 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-not-gte-float +[] > tests-negative-infinity-not-gte-float eq. > @ negative-infinity.gte 42.5 false # Times. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-float-zero +[] > tests-negative-infinity-times-float-zero eq. > @ as-bytes. negative-infinity.times 0.0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-neg-float-zero +[] > tests-negative-infinity-times-neg-float-zero eq. > @ as-bytes. negative-infinity.times -0.0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-int-zero +[] > tests-negative-infinity-times-int-zero eq. > @ as-bytes. positive-infinity.times 0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-nan +[] > tests-negative-infinity-times-nan eq. > @ as-bytes. negative-infinity.times nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-positive-infinity +[] > tests-negative-infinity-times-positive-infinity eq. > @ negative-infinity.times positive-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-negative-infinity +[] > tests-negative-infinity-times-negative-infinity eq. > @ negative-infinity.times negative-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-positive-float +[] > tests-negative-infinity-times-positive-float eq. > @ negative-infinity.times 42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-positive-int +[] > tests-negative-infinity-times-positive-int eq. > @ negative-infinity.times 42 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-negative-float +[] > tests-negative-infinity-times-negative-float eq. > @ negative-infinity.times -42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-times-negative-int +[] > tests-negative-infinity-times-negative-int eq. > @ negative-infinity.times -42 positive-infinity -# Plus +# Plus. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-nan +[] > tests-negative-infinity-plus-nan eq. > @ as-bytes. negative-infinity.plus nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-positive-infinity +[] > tests-negative-infinity-plus-positive-infinity eq. > @ as-bytes. negative-infinity.plus positive-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-negative-infinity +[] > tests-negative-infinity-plus-negative-infinity eq. > @ negative-infinity negative-infinity.plus negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-positive-float +[] > tests-negative-infinity-plus-positive-float eq. > @ negative-infinity.plus 42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-positive-int +[] > tests-negative-infinity-plus-positive-int eq. > @ negative-infinity.plus 42 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-negative-float +[] > tests-negative-infinity-plus-negative-float eq. > @ negative-infinity.plus -42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-plus-negative-int +[] > tests-negative-infinity-plus-negative-int eq. > @ negative-infinity.plus -42 negative-infinity # Negation. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-neg-is-positive-infinity +[] > tests-negative-infinity-neg-is-positive-infinity eq. > @ negative-infinity.neg positive-infinity # Minus. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-nan +[] > tests-negative-infinity-minus-nan eq. > @ as-bytes. negative-infinity.minus nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-negative-infinity +[] > tests-negative-infinity-minus-negative-infinity eq. > @ as-bytes. negative-infinity.minus negative-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-positive-infinity +[] > tests-negative-infinity-minus-positive-infinity eq. > @ negative-infinity.minus positive-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-positive-float +[] > tests-negative-infinity-minus-positive-float eq. > @ negative-infinity.minus 42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-positive-int +[] > tests-negative-infinity-minus-positive-int eq. > @ negative-infinity.minus 42 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-negative-float +[] > tests-negative-infinity-minus-negative-float eq. > @ negative-infinity.minus -42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-minus-negative-int +[] > tests-negative-infinity-minus-negative-int eq. > @ negative-infinity.minus -42 negative-infinity -# Division +# Division. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-float-zero +[] > tests-negative-infinity-div-float-zero eq. > @ negative-infinity.div 0.0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-neg-float-zero +[] > tests-negative-infinity-div-neg-float-zero eq. > @ negative-infinity.div -0.0 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-int-zero +[] > tests-negative-infinity-div-int-zero eq. > @ negative-infinity.div 0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-neg-int-zero +[] > tests-negative-infinity-div-neg-int-zero eq. > @ negative-infinity.div -0 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-nan +[] > tests-negative-infinity-div-nan eq. > @ as-bytes. negative-infinity.div nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-positive-infinity +[] > tests-negative-infinity-div-positive-infinity eq. > @ as-bytes. negative-infinity.div positive-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-negative-infinity +[] > tests-negative-infinity-div-negative-infinity eq. > @ as-bytes. negative-infinity.div negative-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-positive-float +[] > tests-negative-infinity-div-positive-float eq. > @ negative-infinity.div 42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-positive-int +[] > tests-negative-infinity-div-positive-int eq. > @ negative-infinity.div 42 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-negative-float +[] > tests-negative-infinity-div-negative-float eq. > @ negative-infinity.div -42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-div-negative-int +[] > tests-negative-infinity-div-negative-int eq. > @ negative-infinity.div -42 positive-infinity # Bytes. # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-as-bytes-is-valid +[] > tests-negative-infinity-as-bytes-is-valid eq. > @ negative-infinity.as-bytes (-1.0.div 0.0).as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-floor-is-equal-to-self +[] > tests-negative-infinity-floor-is-equal-to-self negative-infinity.floor.eq negative-infinity > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-is-not-nan +[] > tests-negative-infinity-is-not-nan negative-infinity.is-nan.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-is-not-finite +[] > tests-negative-infinity-is-not-finite negative-infinity.is-finite.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > negative-infinity-is-not-integer +[] > tests-negative-infinity-is-not-integer negative-infinity.is-integer.not > @ diff --git a/tests/org/eolang/number-tests.eo b/tests/org/eolang/number-tests.eo index b6d4220e..829b76aa 100644 --- a/tests/org/eolang/number-tests.eo +++ b/tests/org/eolang/number-tests.eo @@ -24,16 +24,17 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > int-less-true +[] > tests-int-less-true lt. > @ 10 50 # This unit test is supposed to check the functionality of the corresponding object. -[] > int-less-equal +[] > tests-int-less-equal eq. > @ not. lt. @@ -42,7 +43,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-less-false +[] > tests-int-less-false eq. > @ not. lt. @@ -51,7 +52,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-greater-true +[] > tests-int-greater-true eq. > @ gt. -200 @@ -59,7 +60,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-greater-false +[] > tests-int-greater-false eq. > @ not. gt. @@ -68,7 +69,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-greater-equal +[] > tests-int-greater-equal eq. > @ not. gt. @@ -77,7 +78,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-leq-true +[] > tests-int-leq-true eq. > @ lte. -200 @@ -85,7 +86,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-leq-equal +[] > tests-int-leq-equal eq. > @ lte. 50 @@ -93,7 +94,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-leq-false +[] > tests-int-leq-false eq. > @ not. lte. @@ -102,7 +103,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-gte-true +[] > tests-int-gte-true eq. > @ gte. -1000 @@ -110,7 +111,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-gte-equal +[] > tests-int-gte-equal eq. > @ gte. 113 @@ -118,7 +119,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-gte-false +[] > tests-int-gte-false eq. > @ not. gte. @@ -127,7 +128,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-equal-to-nan-and-infinites-is-false +[] > tests-int-equal-to-nan-and-infinites-is-false eq. > @ and. and. @@ -143,7 +144,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-zero-eq-to-zero +[] > tests-int-zero-eq-to-zero eq. > @ eq. 0 @@ -151,7 +152,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-zero-eq-to-float-zero +[] > tests-int-zero-eq-to-float-zero eq. > @ eq. 0 @@ -159,7 +160,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-eq-true +[] > tests-int-eq-true eq. > @ eq. 123 @@ -167,7 +168,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > int-eq-false +[] > tests-int-eq-false eq. > @ not. eq. @@ -175,27 +176,26 @@ 42 true -# Test -[] > one-plus-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-one-plus-one eq. > @ 1.plus 1 2 -# Test -[] > one-minus-one +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-one-minus-one eq. > @ 1.minus 1 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-different-types +[] > tests-compares-two-different-number-types eq. > @ 68.eq "12345678" false # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-fibonacci-number-with-recursion - # Fibonacci. +[] > tests-calculates-fibonacci-number-with-recursion [n] > fibo if. > @ n.lt 3 @@ -208,26 +208,23 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-fibonacci-number-with-tail +[] > tests-calculates-fibonacci-number-with-tail eq. > @ fibonacci 4 3 - # Fibonacci. [n] > fibonacci if. > @ n.lt 3 small n rec n 1 1 - # Small. [n] > small if. > @ n.eq 2 1 n - # Recursive. [n minus1 minus2] > rec if. > @ n.eq 3 @@ -235,7 +232,7 @@ rec (n.minus 1) (minus1.plus minus2) minus1 # Checks that division by zero does not return an error object. -[] > zero-division +[] > tests-zero-division try > @ seq * @@ -245,33 +242,35 @@ false # Checks that division by one returns the dividend. -[] > division-by-one +[] > tests-division-by-one -235 > dividend eq. > @ dividend.div 1 dividend # Checks that div works properly with dividends greater than zero -[] > div-for-dividend-greater-than-zero +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-div-for-dividend-greater-than-zero eq. > @ 256.div 16 16 # Checks div with remainder -[] > div-with-remainder +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-div-with-remainder eq. > @ floor. 13.div -5 -2 # This unit test is supposed to check the functionality of the corresponding object. -[] > div-less-than-one +[] > tests-div-less-than-one lt. > @ 1.div 5 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > to-bytes-and-backwards +[] > tests-to-bytes-and-backwards eq. > @ as-number. as-bytes. @@ -279,25 +278,25 @@ 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > as-bytes-equals-to-int +[] > tests-as-bytes-equals-to-int eq. > @ 42 42.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > as-bytes-equals-to-int-backwards +[] > tests-as-bytes-equals-to-int-backwards eq. > @ 42.as-bytes 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > multiply-by-zero +[] > tests-multiply-by-zero eq. > @ 1000.times 0 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-number-is-not-nan +[] > tests-simple-number-is-not-nan 42.5.is-nan.not > @ # This unit test is supposed to check the functionality of the corresponding object. @@ -309,10 +308,10 @@ # This unit test is supposed to check the functionality of the corresponding object. 32.is-finite > [] > simple-number-is-finite -# Test -[] > number-with-nan-bytes-is-nan +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-number-with-nan-bytes-is-nan (number nan.as-bytes).is-nan > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > number-with-infinite-bytes-is-not-finite +[] > tests-number-with-infinite-bytes-is-not-finite (number positive-infinity.as-bytes).is-finite.not > @ diff --git a/tests/org/eolang/positive-infinity-tests.eo b/tests/org/eolang/positive-infinity-tests.eo index 587abfc4..f94daf6b 100644 --- a/tests/org/eolang/positive-infinity-tests.eo +++ b/tests/org/eolang/positive-infinity-tests.eo @@ -24,172 +24,178 @@ +home https://github.com/objectionary/eo +package org.eolang +tests -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # Equal to. -[] > positive-infinity-is-equal-to-one-div-zero +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-positive-infinity-is-equal-to-one-div-zero eq. > @ positive-infinity 1.0.div 0.0 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-eq-positive-infinity +[] > tests-positive-infinity-eq-positive-infinity eq. > @ positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-eq-negative-infinity +[] > tests-positive-infinity-not-eq-negative-infinity not. > @ eq. positive-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-eq-nan +[] > tests-positive-infinity-not-eq-nan not. > @ eq. positive-infinity nan # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-eq-int +[] > tests-positive-infinity-not-eq-int not. > @ eq. positive-infinity 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-eq-float +[] > tests-positive-infinity-not-eq-float not. > @ eq. positive-infinity 42.5 # Less than. -[] > positive-infinity-lt-positive-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-positive-infinity-lt-positive-infinity eq. > @ positive-infinity.lt positive-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lt-negative-infinity +[] > tests-positive-infinity-not-lt-negative-infinity eq. > @ positive-infinity.lt negative-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lt-nan +[] > tests-positive-infinity-not-lt-nan eq. > @ positive-infinity.lt nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lt-int +[] > tests-positive-infinity-not-lt-int eq. > @ positive-infinity.lt 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lt-float +[] > tests-positive-infinity-not-lt-float eq. > @ positive-infinity.lt 42.5 false # Less or equal than. -[] > positive-infinity-lte-positive-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-positive-infinity-lte-positive-infinity eq. > @ positive-infinity.lte positive-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lte-negative-infinity +[] > tests-positive-infinity-not-lte-negative-infinity eq. > @ positive-infinity.lte negative-infinity false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lte-nan +[] > tests-positive-infinity-not-lte-nan eq. > @ positive-infinity.lte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lte-int +[] > tests-positive-infinity-not-lte-int eq. > @ positive-infinity.lte 42 false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-lte-float +[] > tests-positive-infinity-not-lte-float eq. > @ positive-infinity.lte 42.5 false # Greater than. -[] > positive-infinity-gt-positive-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-positive-infinity-gt-positive-infinity not. > @ gt. positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gt-negative-infinity +[] > tests-positive-infinity-gt-negative-infinity gt. > @ positive-infinity negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-gt-nan +[] > tests-positive-infinity-not-gt-nan not. > @ gt. positive-infinity nan # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gt-int +[] > tests-positive-infinity-gt-int gt. > @ positive-infinity 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gt-float +[] > tests-positive-infinity-gt-float gt. > @ positive-infinity 42.5 # Greater or equal than. -[] > positive-infinity-gte-positive-infinity +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-positive-infinity-gte-positive-infinity eq. > @ positive-infinity.gte positive-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gte-negative-infinity +[] > tests-positive-infinity-gte-negative-infinity eq. > @ positive-infinity.gte negative-infinity true # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-not-gte-nan +[] > tests-positive-infinity-not-gte-nan eq. > @ positive-infinity.gte nan false # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gte-int +[] > tests-positive-infinity-gte-int eq. > @ positive-infinity.gte 42 true # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-gte-float +[] > tests-positive-infinity-gte-float eq. > @ positive-infinity.gte 42.5 true # This unit test is supposed to check the functionality of the corresponding object. -[] > float-equal-to-nan-and-infinites-is-false-highload +[] > tests-float-equal-to-nan-and-infinites-is-false-highload negative-infinity > neg-inf eq. > @ and. @@ -219,238 +225,238 @@ # Times. # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-float-zero +[] > tests-positive-infinity-times-float-zero eq. > @ as-bytes. positive-infinity.times 0.0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-neg-float-zero +[] > tests-positive-infinity-times-neg-float-zero eq. > @ as-bytes. positive-infinity.times -0.0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-int-zero +[] > tests-positive-infinity-times-int-zero eq. > @ as-bytes. positive-infinity.times 0 nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-nan +[] > tests-positive-infinity-times-nan eq. > @ as-bytes. positive-infinity.times nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-negative-infinity +[] > tests-positive-infinity-times-negative-infinity negative-infinity > neg-inf eq. > @ positive-infinity.times neg-inf neg-inf # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-positive-infinity +[] > tests-positive-infinity-times-positive-infinity eq. > @ positive-infinity.times positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-positive-float +[] > tests-positive-infinity-times-positive-float eq. > @ positive-infinity.times 42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-positive-int +[] > tests-positive-infinity-times-positive-int eq. > @ positive-infinity.times 42 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-negative-float +[] > tests-positive-infinity-times-negative-float eq. > @ positive-infinity.times -42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-times-negative-int +[] > tests-positive-infinity-times-negative-int eq. > @ positive-infinity.times -42 negative-infinity # Plus # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-plus-nan +[] > tests-positive-infinity-plus-nan eq. > @ as-bytes. positive-infinity.plus nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-plus-negative-infinity +[] > tests-positive-infinity-plus-negative-infinity eq. > @ as-bytes. positive-infinity.plus negative-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-plus-positive-infinity +[] > tests-positive-infinity-plus-positive-infinity eq. > @ positive-infinity.plus positive-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-plus-positive-float +[] > tests-positive-infinity-plus-positive-float eq. > @ positive-infinity.plus 42.5 positive-infinity # Negation # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-neg-is-negative-infinity +[] > tests-positive-infinity-neg-is-negative-infinity eq. > @ positive-infinity.neg negative-infinity # Minus # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-nan +[] > tests-positive-infinity-minus-nan eq. > @ as-bytes. positive-infinity.minus nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-positive-infinity +[] > tests-positive-infinity-minus-positive-infinity eq. > @ as-bytes. positive-infinity.minus positive-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-negative-infinity +[] > tests-positive-infinity-minus-negative-infinity eq. > @ positive-infinity.minus negative-infinity positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-positive-float +[] > tests-positive-infinity-minus-positive-float eq. > @ positive-infinity.minus 42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-positive-int +[] > tests-positive-infinity-minus-positive-int eq. > @ positive-infinity.minus 42 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-negative-float +[] > tests-positive-infinity-minus-negative-float eq. > @ positive-infinity.minus -42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-minus-negative-int +[] > tests-positive-infinity-minus-negative-int eq. > @ positive-infinity.minus -42 positive-infinity # Division # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-float-zero +[] > tests-positive-infinity-div-float-zero eq. > @ positive-infinity.div 0.0 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-neg-float-zero +[] > tests-positive-infinity-div-neg-float-zero eq. > @ positive-infinity.div -0.0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-int-zero +[] > tests-positive-infinity-div-int-zero eq. > @ positive-infinity.div 0 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-neg-int-zero +[] > tests-positive-infinity-div-neg-int-zero eq. > @ positive-infinity.div -0 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-nan +[] > tests-positive-infinity-div-nan eq. > @ as-bytes. positive-infinity.div nan nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-negative-infinity +[] > tests-positive-infinity-div-negative-infinity eq. > @ as-bytes. positive-infinity.div negative-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-positive-infinity +[] > tests-positive-infinity-div-positive-infinity eq. > @ as-bytes. positive-infinity.div positive-infinity nan.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-positive-float +[] > tests-positive-infinity-div-positive-float eq. > @ positive-infinity.div 42.5 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-positive-int +[] > tests-positive-infinity-div-positive-int eq. > @ positive-infinity.div 42 positive-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-negative-float +[] > tests-positive-infinity-div-negative-float eq. > @ positive-infinity.div -42.5 negative-infinity # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-div-negative-int +[] > tests-positive-infinity-div-negative-int eq. > @ positive-infinity.div -42 negative-infinity # Bytes. # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-as-bytes-is-valid +[] > tests-positive-infinity-as-bytes-is-valid eq. > @ positive-infinity.as-bytes (1.0.div 0.0).as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-floor-is-equal-to-self +[] > tests-positive-infinity-floor-is-equal-to-self positive-infinity.floor.eq positive-infinity > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-is-not-nan +[] > tests-positive-infinity-is-not-nan positive-infinity.is-nan.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-is-not-finite +[] > tests-positive-infinity-is-not-finite positive-infinity.is-finite.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > positive-infinity-is-not-integer +[] > tests-positive-infinity-is-not-integer positive-infinity.is-integer.not > @ diff --git a/tests/org/eolang/runtime-tests.eo b/tests/org/eolang/runtime-tests.eo index 81de7794..8e49f28b 100644 --- a/tests/org/eolang/runtime-tests.eo +++ b/tests/org/eolang/runtime-tests.eo @@ -24,15 +24,16 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+unlint abstract-decoratee -+unlint broken-ref -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration ++unlint unit-test-without-phi ++unlint decorated-formation # This unit test is supposed to check the globals bound objects work as tests. true > global-test # This unit test is supposed to check the functionality of the corresponding object. -[] > understands-this-correctly +[] > tests-understands-this-correctly [x] > a $.x > @ eq. > @ @@ -40,7 +41,7 @@ true > global-test 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > takes-parent-object +[] > tests-takes-parent-object [x] > a [] > take ^.x > @ @@ -50,7 +51,7 @@ true > global-test 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > makes-object-a-constant +[] > tests-makes-object-a-constant [] > foo times. > @ 50 @@ -61,7 +62,7 @@ true > global-test f # This unit test is supposed to check the functionality of the corresponding object. -[] > takes-parent-through-attribute +[] > tests-takes-parent-through-attribute 42 > x $ > this [] > @ @@ -79,7 +80,7 @@ true > global-test closed true > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > makes-deep-object-recursively +[] > tests-makes-deep-object-recursively eq. > @ x 5 0 @@ -91,7 +92,7 @@ true > global-test i.minus 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-only-once +[] > tests-calculates-only-once eq. > @ malloc.for 0 @@ -108,7 +109,7 @@ true > global-test 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > recursion-without-arguments +[] > tests-recursion-without-arguments [n] > func if. > @ n.as-number.gt 0 @@ -125,19 +126,19 @@ true > global-test 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > unescapes-slashes +[] > tests-unescapes-slashes eq. > @ "x\\b\\f\\u\\r\\t\\n\\'" 78-5C-62-5C-66-5C-75-5C-72-5C-74-5C-6E-5C-27 # This unit test is supposed to check the functionality of the corresponding object. -[] > unescapes-symbols +[] > tests-unescapes-symbols eq. > @ "\b\f\n\r\t\u27E6" 08-0C-0A-0D-09-E2-9F-A6 # This unit test is supposed to check the functionality of the corresponding object. -[] > compiles-correctly-with-long-duplicate-names +[] > tests-compiles-correctly-with-long-duplicate-names [] > long-object-name [] > long-object-name [] > long-object-name @@ -147,14 +148,14 @@ true > global-test true > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > named-inner-abstract-object +[] > tests-named-inner-abstract-object seq > @ * [] > a true > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > app-that-calls-func +[] > tests-app-that-calls-func [] > app [args] > f 1 > a @@ -167,7 +168,7 @@ true > global-test 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > directly-accesses-objects-from-root +[] > tests-directly-accesses-objects-from-root eq. > @ Q.org.eolang.malloc.of 8 @@ -180,7 +181,7 @@ true > global-test 40 # This unit test is supposed to check the functionality of the corresponding object. -[] > directly-accesses-objects-from-standard-root +[] > tests-directly-accesses-objects-from-standard-root eq. > @ QQ.malloc.of 8 @@ -193,7 +194,7 @@ true > global-test 40 # This unit test is supposed to check the functionality of the corresponding object. -[] > standard-root-and-root +[] > tests-standard-root-and-root QQ.sys.os > stand-root Q.org.eolang.sys.os > root eq. > @ @@ -201,7 +202,7 @@ true > global-test stand-root # This unit test is supposed to check the functionality of the corresponding object. -[] > extract-attribute-from-decoratee +[] > tests-extract-attribute-from-decoratee [foo] > return [] > a ^.return > @ @@ -213,7 +214,7 @@ true > global-test 43 # This unit test is supposed to check the functionality of the corresponding object. -[] > constant-defends-against-side-effects +[] > tests-constant-defends-against-side-effects [x] > inc seq > @ * @@ -233,7 +234,7 @@ true > global-test 64 # This unit test is supposed to check the functionality of the corresponding object. -[] > parent-in-vertical-notation +[] > tests-parent-in-vertical-notation 5 > m [] > value [] > @ @@ -245,7 +246,7 @@ true > global-test 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > parent-in-horizontal-notation +[] > tests-parent-in-horizontal-notation 5 > m [] > value [] > @ @@ -255,7 +256,7 @@ true > global-test 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > phi-in-vertical-notation +[] > tests-phi-in-vertical-notation [] > value [] > @ 100 > @ @@ -265,7 +266,7 @@ true > global-test 100 # This unit test is supposed to check the functionality of the corresponding object. -[] > phi-in-horizontal-notation +[] > tests-phi-in-horizontal-notation [] > value [] > @ 100 > @ @@ -274,8 +275,7 @@ true > global-test 100 # This unit test is supposed to check the functionality of the corresponding object. -[] > right-way-to-use-hierarchy - # Bool mock +[] > tests-right-way-to-use-hierarchy [value] > pybool value > @ [value] > pyint @@ -286,7 +286,7 @@ true > global-test ((pyint 1).add (pyint 3)).eq (pyint 4) > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > check-triple-quotes +[] > tests-check-triple-quotes eq. > @ """ Hello @@ -296,7 +296,7 @@ true > global-test "Hello\n\nHello" # This unit test is supposed to check the functionality of the corresponding object. -[] > correctly-handles-same-name-attrs-simplified +[] > tests-correctly-handles-same-name-attrs-simplified [first second] > calc plus. > @ first @@ -314,7 +314,7 @@ true > global-test 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > correctly-handles-same-name-attrs +[] > tests-correctly-handles-same-name-attrs [f s] > calc plus. > @ f.next @@ -340,7 +340,7 @@ true > global-test 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > with-void-phi +[] > tests-with-void-phi [@] > x "Hello" > hello x 5 > five @@ -352,7 +352,7 @@ true > global-test [] (seq (* (five.eq 5) true) > @) (5 > five) > complex-horizontal # This unit test is supposed to check the functionality of the corresponding object. -[] > vertical-bound-method +[] > tests-vertical-bound-method eq. > @ if. true @@ -361,8 +361,8 @@ true > global-test .as-bytes:0 "first" -# Nesting blah test. -[] > nesting-blah-test +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-nesting-blah-test blah0 > @ [] > blah0 blah1 > @ diff --git a/tests/org/eolang/seq-tests.eo b/tests/org/eolang/seq-tests.eo index 7d8f2fd9..446fff07 100644 --- a/tests/org/eolang/seq-tests.eo +++ b/tests/org/eolang/seq-tests.eo @@ -24,11 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-float-less +[] > tests-seq-single-dataization-float-less malloc.of > @ 1 [b] @@ -44,7 +44,7 @@ 1.1 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-float-greater +[] > tests-seq-single-dataization-float-greater malloc.of > @ 1 [b] @@ -60,7 +60,7 @@ 0.9 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-int-less +[] > tests-seq-single-dataization-int-less malloc.of > @ 1 [b] @@ -76,7 +76,7 @@ 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-int-less-or-equal +[] > tests-seq-single-dataization-int-less-or-equal malloc.of > @ 1 [b] @@ -92,7 +92,7 @@ 1 # This test should have acceptable time to pass. -[] > very-long-seq +[] > tests-very-long-seq eq. > @ true seq @@ -141,7 +141,7 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-int-equal-to-test +[] > tests-seq-single-dataization-int-equal-to-test malloc.of > @ 1 [b] @@ -158,7 +158,7 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-single-dataization-int-equal-to-cache-problem-test +[] > tests-seq-single-dataization-int-equal-to-cache-problem-test malloc.of > @ 1 [b] @@ -177,7 +177,7 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-calculates-and-returns +[] > tests-seq-calculates-and-returns eq. > @ 1 seq @@ -186,7 +186,7 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > seq-calculates-and-returns-object +[] > tests-seq-calculates-and-returns-object eq. > @ "Hello!" seq diff --git a/tests/org/eolang/string-tests.eo b/tests/org/eolang/string-tests.eo index 7765a837..db21696d 100644 --- a/tests/org/eolang/string-tests.eo +++ b/tests/org/eolang/string-tests.eo @@ -24,48 +24,49 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > calculates-length-of-spaces-only +[] > tests-calculates-length-of-spaces-only eq. > @ " ".length 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > turns-string-into-bytes +[] > tests-turns-string-into-bytes eq. > @ "€ друг".as-bytes E2-82-AC-20-D0-B4-D1-80-D1-83-D0-B3 # This unit test is supposed to check the functionality of the corresponding object. -[] > bytes-equal-to-string +[] > tests-bytes-equal-to-string eq. > @ D0-B4-D1-80-D1-83-D0-B3 "друг" # This unit test is supposed to check the functionality of the corresponding object. -[] > string-equals-to-bytes +[] > tests-string-equals-to-bytes eq. > @ "друг" D0-B4-D1-80-D1-83-D0-B3 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-the-length-with-2-byte-characters +[] > tests-reads-the-length-with-n2-byte-characters "Hello, друг!" > str and. > @ str.length.eq 12 str.as-bytes.size.eq 16 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-the-length-with-3-byte-characters +[] > tests-reads-the-length-with-n3-byte-characters "The अ devanagari" > str and. > @ str.length.eq 16 str.as-bytes.size.eq 18 # This unit test is supposed to check the functionality of the corresponding object. -[] > reads-the-length-with-4-byte-characters +[] > tests-reads-the-length-with-n4-byte-characters "The 😀 smile" > str and. > @ str.length.eq 11 @@ -74,39 +75,39 @@ # This unit test is supposed to check the functionality of the corresponding object. # The smile emoji is F0-9F-98-80 in bytes. Here we check if string.length fails if it faces # incomplete 4 byte character. -[] > throws-on-taking-length-of-incomplete-4-byte-character +[] > throws-on-taking-length-of-incomplete-n4-byte-character string F0-9F-98 > should-be-smile should-be-smile.length > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-different-types +[] > tests-compares-two-different-string-types not. > @ eq. "Hello" 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-string-with-nan +[] > tests-compares-string-with-nan not. > @ eq. nan "друг" # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-string-with-positive-infinity +[] > tests-compares-string-with-positive-infinity eq. > @ positive-infinity.eq "друг" false # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-string-with-negative-infinity +[] > tests-compares-string-with-negative-infinity not. > @ eq. negative-infinity "друг" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-block-one-line +[] > tests-text-block-one-line eq. > @ """ Abc @@ -114,7 +115,7 @@ "Abc" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-block-tree-lines +[] > tests-text-block-tree-lines eq. > @ """ e @@ -124,7 +125,7 @@ 65-0A-65-0A-65 # This unit test is supposed to check the functionality of the corresponding object. -[] > text-block-with-margin +[] > tests-text-block-with-margin eq. > @ """ z @@ -134,20 +135,20 @@ 7A-0A-20-20-79-0A-20-78 # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-different-strings +[] > tests-compares-two-different-strings not. > @ eq. "Hello" "Good bye" # This unit test is supposed to check the functionality of the corresponding object. -[] > supports-escape-sequences +[] > tests-supports-escape-sequences eq. > @ "Hello, \u0434\u0440\u0443\u0433!\n" "Hello, друг!\n" # This unit test is supposed to check the functionality of the corresponding object. -[] > supports-escape-sequences-in-text +[] > tests-supports-escape-sequences-in-text eq. > @ """ Hello, \u0434\u0440\u0443\u0433!\n @@ -155,7 +156,7 @@ "Hello, друг!\n" # This unit test is supposed to check the functionality of the corresponding object. -[] > preserves-indentation-in-text +[] > tests-preserves-indentation-in-text eq. > @ """ a @@ -165,7 +166,7 @@ "a\n b\n c" # This unit test is supposed to check the functionality of the corresponding object. -[] > compares-two-strings +[] > tests-compares-two-strings eq. > @ eq. "x" @@ -173,55 +174,55 @@ true # This unit test is supposed to check the functionality of the corresponding object. -[] > one-symbol-string-compares +[] > tests-one-symbol-string-compares eq. > @ "Ф" "Ф" # This unit test is supposed to check the functionality of the corresponding object. -[] > supports-escape-sequences-line-break +[] > tests-supports-escape-sequences-line-break eq. > @ "\n" "\012" # This unit test is supposed to check the functionality of the corresponding object. -[] > supports-escape-sequences-unicode +[] > tests-supports-escape-sequences-unicode eq. > @ "\u0424" "Ф" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-from-start +[] > tests-slice-from-start eq. > @ "hello".slice 0 1 "h" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-in-the-middle +[] > tests-slice-in-the-middle eq. > @ "hello".slice 2 3 "llo" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-from-the-end +[] > tests-slice-from-the-end eq. > @ "hello".slice 4 1 "o" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-empty-string +[] > tests-slice-empty-string eq. > @ "".slice 0 0 "" # This unit test is supposed to check the functionality of the corresponding object. -[] > no-slice-string +[] > tests-no-slice-string eq. > @ "no slice".slice 0 0 "" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-escape-sequences-line-break +[] > tests-slice-escape-sequences-line-break eq. > @ "\n".slice 0 @@ -229,7 +230,7 @@ "\012" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-escape-sequences-unicode +[] > tests-slice-escape-sequences-unicode eq. > @ "\u0424".slice 0 @@ -237,25 +238,25 @@ "Ф" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-with-2-byte-characters +[] > tests-slice-with-n2-byte-characters eq. > @ "привет".slice 1 2 "ри" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-with-3-byte-characters +[] > tests-slice-with-n3-byte-characters eq. > @ "The अ is अ".slice 1 6 "he अ i" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-with-4-byte-characters +[] > tests-slice-with-n4-byte-characters eq. > @ "One 😀 and 😀 another".slice 3 8 " 😀 and 😀" # This unit test is supposed to check the functionality of the corresponding object. -[] > slice-foreign-literals +[] > tests-slice-foreign-literals eq. > @ "hello, 大家!".slice 7 diff --git a/tests/org/eolang/structs/bytes-as-array-tests.eo b/tests/org/eolang/structs/bytes-as-array-tests.eo index de85ae87..abe2a944 100644 --- a/tests/org/eolang/structs/bytes-as-array-tests.eo +++ b/tests/org/eolang/structs/bytes-as-array-tests.eo @@ -20,16 +20,17 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.structs.list +alias org.eolang.structs.bytes-as-array ++alias org.eolang.structs.list +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-bytes-to-array +[] > tests-converts-bytes-to-array eq. > @ list bytes-as-array @@ -37,7 +38,7 @@ * 20- 1F- EE- B5- FF- # This unit test is supposed to check the functionality of the corresponding object. -[] > single-byte-to-array +[] > tests-single-byte-to-array eq. > @ list bytes-as-array @@ -45,7 +46,7 @@ * 1F- # This unit test is supposed to check the functionality of the corresponding object. -[] > zero-bytes-to-array +[] > tests-zero-bytes-to-array eq. > @ list bytes-as-array diff --git a/tests/org/eolang/structs/hash-code-of-tests.eo b/tests/org/eolang/structs/hash-code-of-tests.eo index 13f11a76..cdac6e9c 100644 --- a/tests/org/eolang/structs/hash-code-of-tests.eo +++ b/tests/org/eolang/structs/hash-code-of-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-code-of-bools-is-number +[] > tests-hash-code-of-bools-is-number hash-code-of true > true-code hash-code-of false > false-code and. > @ @@ -36,7 +37,7 @@ false-code.as-bytes.size.eq 8 # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-code-of-int-is-int +[] > tests-hash-code-of-int-is-int hash-code-of 42 > num-code! eq. > @ 1 @@ -45,34 +46,34 @@ number num-code # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-big-ints-are-equal +[] > tests-hash-codes-of-the-same-big-ints-are-equal 123456789012345678 > big-int eq. > @ hash-code-of big-int hash-code-of big-int # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-ints-are-equal +[] > tests-hash-codes-of-the-same-ints-are-equal eq. > @ hash-code-of 42 hash-code-of 42 # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-ints-are-not-equal +[] > tests-hash-codes-of-different-ints-are-not-equal not. > @ eq. hash-code-of 42 hash-code-of 24 # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-sign-ints-are-not-equal +[] > tests-hash-codes-of-different-sign-ints-are-not-equal not. > @ eq. hash-code-of 42 hash-code-of -42 # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-code-of-string-is-int +[] > tests-hash-code-of-string-is-int hash-code-of "hello" > str-code! eq. > @ 1 @@ -81,27 +82,27 @@ number str-code # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-strings-are-equal +[] > tests-hash-codes-of-the-same-strings-are-equal eq. > @ hash-code-of "Hello" hash-code-of "Hello" # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-same-length-strings-are-not-equal +[] > tests-hash-codes-of-same-length-strings-are-not-equal not. > @ eq. hash-code-of "one" hash-code-of "two" # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-strings-are-not-equal +[] > tests-hash-codes-of-different-strings-are-not-equal not. > @ eq. hash-code-of "hello" hash-code-of "bye!!!" # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-code-of-abstract-object-is-int +[] > tests-hash-code-of-abstract-object-is-int [x] > obj x > @ hash-code-of (obj 42) > obj-code! @@ -112,7 +113,7 @@ number obj-code # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-abstract-objects-are-equal +[] > tests-hash-codes-of-the-same-abstract-objects-are-equal [x] > obj x > @ obj 42 > forty-two-obj @@ -121,7 +122,7 @@ hash-code-of forty-two-obj # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-abstract-objects-are-not-equal +[] > tests-hash-codes-of-different-abstract-objects-are-not-equal [x] > obj x > @ not. > @ @@ -130,7 +131,7 @@ hash-code-of (obj "42") # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-code-of-float-is-int +[] > tests-hash-code-of-float-is-int hash-code-of 42.42 > float-code! eq. > @ 1 @@ -139,28 +140,28 @@ number float-code # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-floats-are-equal +[] > tests-hash-codes-of-the-same-floats-are-equal 0.911 > emergency eq. > @ hash-code-of emergency hash-code-of emergency # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-the-same-big-floats-are-equal +[] > tests-hash-codes-of-the-same-big-floats-are-equal 42.42e42 > big-float! eq. > @ hash-code-of big-float hash-code-of big-float # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-floats-are-not-equal +[] > tests-hash-codes-of-different-floats-are-not-equal not. > @ eq. hash-code-of 3.14 hash-code-of 2.72 # This unit test is supposed to check the functionality of the corresponding object. -[] > hash-codes-of-different-sign-floats-are-not-equal +[] > tests-hash-codes-of-different-sign-floats-are-not-equal not. > @ eq. hash-code-of 3.22 diff --git a/tests/org/eolang/structs/list-tests.eo b/tests/org/eolang/structs/list-tests.eo index 99523504..c93341b6 100644 --- a/tests/org/eolang/structs/list-tests.eo +++ b/tests/org/eolang/structs/list-tests.eo @@ -26,11 +26,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > list-should-not-be-empty +[] > tests-list-should-not-be-empty not. > @ is-empty. list @@ -40,7 +40,7 @@ (list *).is-empty > [] > list-should-be-empty # This unit test is supposed to check the functionality of the corresponding object. -[] > list-should-not-be-empty-with-three-objects +[] > tests-list-should-not-be-empty-with-three-objects * > xs [x] [y] @@ -48,13 +48,13 @@ (list xs).is-empty.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > list-should-not-be-empty-with-one-anon-object +[] > tests-list-should-not-be-empty-with-one-anon-object * > xs [f] (list xs).is-empty.not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > list-simple-with +[] > tests-list-simple-with eq. > @ with. list @@ -63,7 +63,7 @@ * 1 2 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-insert +[] > tests-simple-insert eq. > @ withi. list @@ -73,7 +73,7 @@ * 1 2 3 "hello" 4 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > insert-with-zero-index +[] > tests-insert-with-zero-index eq. > @ withi. list @@ -83,7 +83,7 @@ * "hello" 1 2 3 4 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > reduce-list-with-index +[] > tests-reduce-list-with-index * 2 2 > src eq. > @ 6 @@ -98,7 +98,7 @@ ^.src.at i # This unit test is supposed to check the functionality of the corresponding object. -[] > list-reducedi-long-int-array +[] > tests-list-reducedi-long-int-array eq. > @ reducedi. list @@ -108,7 +108,7 @@ 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-reducedi-bools-array +[] > tests-list-reducedi-bools-array not. > @ reducedi. list @@ -117,7 +117,7 @@ x.and a > [a x i] # This unit test is supposed to check the functionality of the corresponding object. -[] > list-reducedi-nested-functions +[] > tests-list-reducedi-nested-functions eq. > @ reducedi. list @@ -135,7 +135,7 @@ 0.minus 500 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-reduce-without-index +[] > tests-list-reduce-without-index eq. > @ reduced. list @@ -145,7 +145,7 @@ -24 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-reduced-printing +[] > tests-list-reduced-printing eq. > @ reduced. list @@ -159,7 +159,7 @@ "01" # This unit test is supposed to check the functionality of the corresponding object. -[] > complex-objects-list-comparison +[] > tests-complex-objects-list-comparison list > res * list (* 0 1) @@ -172,7 +172,7 @@ * 7 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-mappedi-should-work +[] > tests-list-mappedi-should-work eq. > @ mappedi. list @@ -181,7 +181,7 @@ * 0 2 6 12 # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-list-mapping +[] > tests-simple-list-mapping eq. > @ mapped. list @@ -190,7 +190,7 @@ * 2 4 6 # This unit test is supposed to check the functionality of the corresponding object. -[] > iterates-with-eachi +[] > tests-iterates-with-eachi eq. > @ malloc.for 0 @@ -206,7 +206,7 @@ 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > iterates-with-each +[] > tests-iterates-with-each eq. > @ malloc.for 0 @@ -218,7 +218,7 @@ 6 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-withouti +[] > tests-list-withouti eq. > @ withouti. list @@ -227,7 +227,7 @@ * 1 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-withouti-complex-case +[] > tests-list-withouti-complex-case [a] > foo withouti. > @ list a @@ -238,7 +238,7 @@ * "text" "f" # This unit test is supposed to check the functionality of the corresponding object. -[] > list-withouti-nested-array +[] > tests-list-withouti-nested-array * 3 2 1 > nested eq. > @ withouti. @@ -248,7 +248,7 @@ * "smthg" 27 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-without +[] > tests-list-without eq. > @ without. list @@ -257,14 +257,14 @@ * 1 1 1 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > equality-test +[] > tests-equality-test eq. > @ list * 1 2 3 * 1 2 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > not-equality-test +[] > tests-not-equality-test not. > @ eq. list @@ -272,7 +272,7 @@ * 3 2 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > concatenates-lists +[] > tests-concatenates-lists list (* 0 1) > list1 list (* 2 3) > list2 withouti. > list3 @@ -289,7 +289,7 @@ * 1 2 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > concatenates-with-tuple +[] > tests-concatenates-with-tuple eq. > @ concat. list @@ -298,7 +298,7 @@ * 0 1 2 4 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-index-of +[] > tests-returns-index-of eq. > @ 1 index-of. @@ -307,7 +307,7 @@ 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-first-index-of-element +[] > tests-returns-first-index-of-element eq. > @ 0 index-of. @@ -316,7 +316,7 @@ -1 # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-find-index-of +[] > tests-does-not-find-index-of eq. > @ -1 index-of. @@ -325,7 +325,7 @@ 7 # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-index-of-string +[] > tests-finds-index-of-string eq. > @ 1 index-of. @@ -334,7 +334,7 @@ "qwerty" # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-last-index-of +[] > tests-finds-last-index-of eq. > @ 1 last-index-of. @@ -343,7 +343,7 @@ 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-last-index-of-repeated +[] > tests-finds-last-index-of-repeated eq. > @ 2 last-index-of. @@ -352,7 +352,7 @@ 24 # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-not-found +[] > tests-last-index-of-not-found eq. > @ -1 last-index-of. @@ -361,7 +361,7 @@ 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-empty +[] > tests-last-index-of-empty eq. > @ -1 last-index-of. @@ -369,7 +369,7 @@ "abc" # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-unicode +[] > tests-last-index-of-unicode eq. > @ 3 last-index-of. @@ -378,21 +378,21 @@ "Привет" # This unit test is supposed to check the functionality of the corresponding object. -[] > list-contains-string +[] > tests-list-contains-string contains. > @ list * "qwerty" "asdfgh" 3 "qwerty" "qwerty" # This unit test is supposed to check the functionality of the corresponding object. -[] > list-contains-number +[] > tests-list-contains-number contains. > @ list * "qwerty" "asdfgh" 3 "qwerty" 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-does-not-contain +[] > tests-list-does-not-contain not. > @ contains. list @@ -400,7 +400,7 @@ "Hi" # This unit test is supposed to check the functionality of the corresponding object. -[] > filteredi-with-lt +[] > tests-filteredi-with-lt eq. > @ filteredi. list @@ -409,7 +409,7 @@ * 1 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > filteredi-with-string-length +[] > tests-filteredi-with-string-length eq. > @ filteredi. list @@ -418,7 +418,7 @@ * "Hello" # This unit test is supposed to check the functionality of the corresponding object. -[] > filteredi-with-empty-list +[] > tests-filteredi-with-empty-list is-empty. > @ filteredi. list @@ -426,7 +426,7 @@ v.lt 3 > [v i] # This unit test is supposed to check the functionality of the corresponding object. -[] > filteredi-by-index +[] > tests-filteredi-by-index eq. > @ filteredi. list @@ -435,7 +435,7 @@ * 1 4 # This unit test is supposed to check the functionality of the corresponding object. -[] > filteredi-with-bools +[] > tests-filteredi-with-bools eq. > @ filteredi. list @@ -444,7 +444,7 @@ * false # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-filtered +[] > tests-simple-filtered eq. > @ filtered. list @@ -453,7 +453,7 @@ * 3 4 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > filtered-with-bools +[] > tests-filtered-with-bools eq. > @ filtered. list @@ -462,7 +462,7 @@ * false # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-head +[] > tests-simple-head eq. > @ head. list @@ -471,7 +471,7 @@ * 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-head-with-zero-index +[] > tests-list-head-with-zero-index is-empty. > @ head. list @@ -479,7 +479,7 @@ 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > list-head-with-length-index +[] > tests-list-head-with-length-index eq. > @ head. list @@ -488,7 +488,7 @@ * 1 2 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > complex-head +[] > tests-complex-head eq. > @ head. list @@ -497,7 +497,7 @@ * "foo" 2.2 # This unit test is supposed to check the functionality of the corresponding object. -[] > head-with-negative +[] > tests-head-with-negative eq. > @ head. list @@ -506,7 +506,7 @@ * 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > complex-head-with-negative +[] > tests-complex-head-with-negative eq. > @ head. list @@ -515,7 +515,7 @@ * 2.2 00-01 "bar" # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-tail +[] > tests-simple-tail eq. > @ tail. list @@ -524,7 +524,7 @@ * 4 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > zero-index-in-tail +[] > tests-zero-index-in-tail is-empty. > @ tail. list @@ -532,7 +532,7 @@ 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > large-index-in-tail +[] > tests-large-index-in-tail eq. > @ tail. list diff --git a/tests/org/eolang/structs/map-tests.eo b/tests/org/eolang/structs/map-tests.eo index 5c68d420..67c7cc49 100644 --- a/tests/org/eolang/structs/map-tests.eo +++ b/tests/org/eolang/structs/map-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > map-rebuilds-itself +[] > tests-map-rebuilds-itself map > mp * map.entry 1 1 @@ -38,7 +39,7 @@ 2.eq mp.size > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > map-rebuilds-itself-only-once +[] > tests-map-rebuilds-itself-only-once eq. > @ 1 malloc.for @@ -56,7 +57,7 @@ m # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-list-of-keys +[] > tests-returns-list-of-keys eq. > @ keys. map @@ -67,7 +68,7 @@ * 1 2 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-list-of-values +[] > tests-returns-list-of-values eq. > @ values. map @@ -78,7 +79,7 @@ * 2 3 4 # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-element-by-key-in-map +[] > tests-finds-element-by-key-in-map map > mp * map.entry "one" 1 @@ -88,7 +89,7 @@ 2.eq found.get > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-find-element-by-key-in-hash-map +[] > tests-does-not-find-element-by-key-in-hash-map map * map.entry "one" 1 @@ -98,7 +99,7 @@ .not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > has-element-with-key-in-hash-map +[] > tests-has-element-with-key-in-hash-map map * map.entry "one" 1 @@ -106,7 +107,7 @@ .has "two" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-have-element-by-key-in-hash-map +[] > tests-does-not-have-element-by-key-in-hash-map map * map.entry "one" 1 @@ -115,7 +116,7 @@ .not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-change-map-without-non-existed-element +[] > tests-does-not-change-map-without-non-existed-element map * map.entry "one" 1 @@ -124,7 +125,7 @@ .eq 1 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > removes-element-from-map-by-key +[] > tests-removes-element-from-map-by-key map * map.entry "one" 1 @@ -135,7 +136,7 @@ (mp.has "one").not # This unit test is supposed to check the functionality of the corresponding object. -[] > adds-new-pair-to-hash-map +[] > tests-adds-new-pair-to-hash-map map * map.entry "one" 1 @@ -145,7 +146,7 @@ mp.has "two" # This unit test is supposed to check the functionality of the corresponding object. -[] > replaces-value-if-pair-with-key-exists-in-map +[] > tests-replaces-value-if-pair-with-key-exists-in-map map * map.entry "one" 1 diff --git a/tests/org/eolang/structs/range-of-ints-tests.eo b/tests/org/eolang/structs/range-of-ints-tests.eo index 87c02d8f..5e807052 100644 --- a/tests/org/eolang/structs/range-of-ints-tests.eo +++ b/tests/org/eolang/structs/range-of-ints-tests.eo @@ -25,26 +25,27 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-range-of-ints-from-one-to-ten +[] > tests-simple-range-of-ints-from-one-to-ten eq. > @ range-of-ints 1 10 * 1 2 3 4 5 6 7 8 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > range-of-ints-from-ten-to-ten-is-empty +[] > tests-range-of-ints-from-ten-to-ten-is-empty is-empty. > @ range-of-ints 10 10 # This unit test is supposed to check the functionality of the corresponding object. -[] > range-of-descending-ints-is-empty +[] > tests-range-of-descending-ints-is-empty is-empty. > @ range-of-ints 10 1 # This unit test is supposed to check the functionality of the corresponding object. -[] > range-of-negative-ints-works-as-well +[] > tests-range-of-negative-ints-works-as-well eq. > @ range-of-ints -5 0 * -5 -4 -3 -2 -1 diff --git a/tests/org/eolang/structs/range-tests.eo b/tests/org/eolang/structs/range-tests.eo index e12fb14b..69ba0463 100644 --- a/tests/org/eolang/structs/range-tests.eo +++ b/tests/org/eolang/structs/range-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-range-from-one-to-ten +[] > tests-simple-range-from-one-to-ten range > rng [] [i] > build @@ -41,7 +42,7 @@ * 1 2 3 4 5 6 7 8 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-range-with-floats-from-one-to-five +[] > tests-simple-range-with-floats-from-one-to-five range > rng [] [i] > x @@ -54,7 +55,7 @@ * 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 # This unit test is supposed to check the functionality of the corresponding object. -[] > range-with-out-of-bounds +[] > tests-range-with-out-of-bounds range > rng [] [num] > b @@ -67,7 +68,7 @@ * 1 6 # This unit test is supposed to check the functionality of the corresponding object. -[] > range-with-wrong-items-is-an-empty-array +[] > tests-range-with-wrong-items-is-an-empty-array range > rng [] [num] > y diff --git a/tests/org/eolang/structs/set-tests.eo b/tests/org/eolang/structs/set-tests.eo index a3ca7e8b..4a8e213e 100644 --- a/tests/org/eolang/structs/set-tests.eo +++ b/tests/org/eolang/structs/set-tests.eo @@ -25,17 +25,18 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.structs -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > set-rebuilds-itself +[] > tests-set-rebuilds-itself eq. > @ set * 1 2 2 * 1 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-append-existed-item-to-set +[] > tests-does-not-append-existed-item-to-set set * 1 2 .with 1 @@ -43,14 +44,14 @@ .eq 2 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > appends-new-item-to-set +[] > tests-appends-new-item-to-set set * 1 2 .with 3 .has 3 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > empty-set-has-size-of-zero +[] > tests-empty-set-has-size-of-zero set * .size diff --git a/tests/org/eolang/switch-tests.eo b/tests/org/eolang/switch-tests.eo index d5c677ab..ef1166db 100644 --- a/tests/org/eolang/switch-tests.eo +++ b/tests/org/eolang/switch-tests.eo @@ -24,11 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > switch-simple-case +[] > tests-switch-simple-case eq. > @ switch * @@ -41,7 +41,7 @@ "2" # This unit test is supposed to check the functionality of the corresponding object. -[] > switch-strings-case +[] > tests-switch-strings-case "swordfish" > password eq. > @ switch @@ -58,7 +58,7 @@ "password is correct!" # This unit test is supposed to check the functionality of the corresponding object. -[] > switch-with-several-true-cases +[] > tests-switch-with-several-true-cases eq. > @ switch * @@ -74,7 +74,7 @@ "TRUE1" # This unit test is supposed to check the functionality of the corresponding object. -[] > switch-with-all-false-cases +[] > tests-switch-with-all-false-cases switch > @ * * @@ -89,7 +89,7 @@ switch * > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > switch-complex-case +[] > tests-switch-complex-case [] > c1 false > @ [] > c2 diff --git a/tests/org/eolang/sys/os-tests.eo b/tests/org/eolang/sys/os-tests.eo index b66cf7d9..e491ba18 100644 --- a/tests/org/eolang/sys/os-tests.eo +++ b/tests/org/eolang/sys/os-tests.eo @@ -25,10 +25,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.sys -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-os-family +[] > tests-checks-os-family or. > @ or. os.is-windows diff --git a/tests/org/eolang/sys/posix-tests.eo b/tests/org/eolang/sys/posix-tests.eo index 74b4bae8..4a04717d 100644 --- a/tests/org/eolang/sys/posix-tests.eo +++ b/tests/org/eolang/sys/posix-tests.eo @@ -20,16 +20,17 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.sys.posix +alias org.eolang.sys.os ++alias org.eolang.sys.posix +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.sys -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > invokes-getpid-correctly +[] > tests-invokes-getpid-correctly or. > @ os.is-windows gt. @@ -40,7 +41,7 @@ 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > opens-posix-tcp-socket +[] > tests-opens-posix-tcp-socket code. > sd posix "socket" @@ -56,7 +57,7 @@ * sd # This unit test is supposed to check the functionality of the corresponding object. -[] > closes-posix-tcp-socket +[] > tests-closes-posix-tcp-socket code. > sd posix "socket" @@ -75,7 +76,7 @@ -1 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-posix-inet-addr-for-localhost +[] > tests-returns-valid-posix-inet-addr-for-localhost code. > addr posix "inet_addr" diff --git a/tests/org/eolang/sys/win32-tests.eo b/tests/org/eolang/sys/win32-tests.eo index 5c7dd3c1..da39e8be 100644 --- a/tests/org/eolang/sys/win32-tests.eo +++ b/tests/org/eolang/sys/win32-tests.eo @@ -20,16 +20,17 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -+alias org.eolang.sys.win32 +alias org.eolang.sys.os ++alias org.eolang.sys.win32 +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.sys -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-win32-inet-addr-for-localhost +[] > tests-returns-valid-win32-inet-addr-for-localhost code. > addr win32 "inet_addr" diff --git a/tests/org/eolang/try-tests.eo b/tests/org/eolang/try-tests.eo index ffe670f1..677afc6f 100644 --- a/tests/org/eolang/try-tests.eo +++ b/tests/org/eolang/try-tests.eo @@ -24,10 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > catches-simple-exception +[] > tests-catches-simple-exception try > @ slice. "some string" @@ -37,7 +38,7 @@ false # This unit test is supposed to check the functionality of the corresponding object. -[] > two-nested-try-blocks +[] > tests-two-nested-try-blocks try > @ try slice. @@ -50,7 +51,7 @@ false # This unit test is supposed to check the functionality of the corresponding object. -[] > try-without-error-block +[] > tests-try-without-error-block eq. > @ try 30.plus 2 @@ -59,7 +60,7 @@ 32 # This unit test is supposed to check the functionality of the corresponding object. -[] > try-malloc-update-catch +[] > tests-try-malloc-update-catch eq. > @ malloc.of 8 diff --git a/tests/org/eolang/tuple-tests.eo b/tests/org/eolang/tuple-tests.eo index 46fc994d..76ef5942 100644 --- a/tests/org/eolang/tuple-tests.eo +++ b/tests/org/eolang/tuple-tests.eo @@ -24,29 +24,30 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > makes-tuple-through-special-syntax +[] > tests-makes-tuple-through-special-syntax eq. > @ (* 1 2).length 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > gets-lengths-of-empty-tuple-through-special-syntax +[] > tests-gets-lengths-of-empty-tuple-through-special-syntax eq. > @ *.length 0 # Check that an empty tuples .length equals to zero. -[] > empty-tuple-length +[] > tests-empty-tuple-length [elements] > arr eq. > @ (arr *).elements.length 0 # Check that tuple.length works properly for non-empty tuples. -[] > non-empty-tuple-length-test +[] > tests-non-empty-tuple-length-test [elements] > arr eq. > @ arr @@ -56,14 +57,14 @@ 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-as-a-bound-attribute-size-0 +[] > tests-tuple-as-a-bound-attribute-size-0 * > anArray eq. > @ anArray.length 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-as-a-bound-attribute-size-1 +[] > tests-tuple-as-a-bound-attribute-size-1 * > anArray 100 eq. > @ @@ -71,7 +72,7 @@ 100 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-as-a-bound-attribute-size-2 +[] > tests-tuple-as-a-bound-attribute-size-2 * > arr 1 2 @@ -84,7 +85,7 @@ 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-with +[] > tests-tuple-with with. > arr * 1 2 3 "with" @@ -111,7 +112,7 @@ 20 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-fluent-with +[] > tests-tuple-fluent-with ((*.with 1).with 2).with 3 > arr and. > @ and. @@ -126,7 +127,7 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-fluent-with-indented +[] > tests-tuple-fluent-with-indented * .with 1 .with 2 @@ -144,41 +145,41 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > gets-lengths-of-empty-tuple +[] > tests-gets-lengths-of-empty-tuple tuple.empty > a eq. > @ a.length 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > gets-lengths-of-empty-tuple-without-additional-obj +[] > tests-gets-lengths-of-empty-tuple-without-additional-obj eq. > @ tuple.empty.length 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > creates-empty-tuple-with-number +[] > tests-creates-empty-tuple-with-number tuple.empty.with 3 > a eq. > @ a.at 0 3 -# Test -[] > at-fast-with-first-element +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-at-fast-with-first-element * 100 101 102 > arr eq. > @ (arr.at 0).at-fast arr 100 -# Test -[] > at-fast-with-last-element +# This unit test is supposed to check the functionality of the corresponding object. +[] > tests-at-fast-with-last-element * 100 101 102 > arr eq. > @ (arr.at 2).at-fast arr 102 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-empty-fluent-with-indented-keyword +[] > tests-tuple-empty-fluent-with-indented-keyword tuple .empty .with 1 @@ -197,14 +198,14 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-with-negative-index-gets-last +[] > tests-tuple-with-negative-index-gets-last * 0 1 2 3 4 > arr eq. > @ arr.at -1 4 # This unit test is supposed to check the functionality of the corresponding object. -[] > tuple-with-negative-index-gets-first +[] > tests-tuple-with-negative-index-gets-first * 0 1 2 3 4 > arr eq. > @ arr.at -5 diff --git a/tests/org/eolang/txt/regex-tests.eo b/tests/org/eolang/txt/regex-tests.eo index 73486126..fc04265a 100644 --- a/tests/org/eolang/txt/regex-tests.eo +++ b/tests/org/eolang/txt/regex-tests.eo @@ -25,18 +25,19 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.txt -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > matches-regex-against-the-pattern +[] > tests-matches-regex-against-the-pattern (regex "/[a-z]+/").compiled.matches "hello" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-matches-regex-against-the-pattern +[] > tests-does-not-matches-regex-against-the-pattern ((regex "/[a-z]+/").compiled.matches "123").not > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > matched-sequence-has-right-border-indexes +[] > tests-matched-sequence-has-right-border-indexes ((regex "/[a-z]+/").match "!hello!").next > n and. > @ 0.eq n.start @@ -45,11 +46,11 @@ 6.eq n.to # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-returns-valid-matched-string-sequence +[] > tests-regex-returns-valid-matched-string-sequence ((regex "/[a-z]+/").match "!hello!").next.text.eq "hello" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-returns-valid-second-matched-block +[] > tests-regex-returns-valid-second-matched-block ((regex "/[a-z]+/").match "!hello!world!").next.next > second and. > @ and. @@ -90,7 +91,7 @@ ((regex "/[a-z]+/").match "123").next.text > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-dotall-option +[] > tests-regex-matches-dotall-option regex "/(.*)/s" .compiled @@ -98,7 +99,7 @@ "too \\n many \\n line \\n Feed\\n" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-with-case-insensitive-option +[] > tests-regex-matches-with-case-insensitive-option regex "/(string)/i" .compiled @@ -106,7 +107,7 @@ "StRiNg" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-with-multiline-option +[] > tests-regex-matches-with-multiline-option regex "/(^([0-9]+).*)/m" .compiled @@ -114,7 +115,7 @@ "1 bottle of water on the wall. \\n1 bottle of water." # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-entire-pattern +[] > tests-regex-matches-entire-pattern regex "/[0-9]/\\d+/" .compiled @@ -122,7 +123,7 @@ "2/75" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-with-regex-unix-lines +[] > tests-regex-matches-with-regex-unix-lines regex "/(.+)/d" .compiled @@ -130,7 +131,7 @@ "A\\r\\nB\\rC\\nD" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-with-regex-case-insensitive-and-caps +[] > tests-regex-matches-with-regex-case-insensitive-and-caps regex "/(word)/i" .compiled @@ -138,7 +139,7 @@ "WORD" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-ignores-comments-in-string +[] > tests-regex-ignores-comments-in-string regex "/(\\d) #ignore this comment/x" .compiled @@ -146,7 +147,7 @@ "4" # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-matches-with-unicode-case-and-insensitive +[] > tests-regex-matches-with-unicode-case-and-insensitive regex "/(yildirim)/ui" .compiled @@ -158,7 +159,7 @@ (regex "(.)+").compiled > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > regex-contains-valid-groups-on-each-matched-block +[] > tests-regex-contains-valid-groups-on-each-matched-block ((regex "/([a-z]+)([1-9]{1})/").compiled.match "!hello1!world2").next > first first.next > second and. > @ diff --git a/tests/org/eolang/txt/sprintf-tests.eo b/tests/org/eolang/txt/sprintf-tests.eo index c294786d..18e6a773 100644 --- a/tests/org/eolang/txt/sprintf-tests.eo +++ b/tests/org/eolang/txt/sprintf-tests.eo @@ -25,10 +25,12 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.txt -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration ++unlint wrong-sprintf-arguments # This unit test is supposed to check the functionality of the corresponding object. -[] > prints-simple-string +[] > tests-prints-simple-string eq. > @ "Hello, Jeffrey!" sprintf @@ -36,7 +38,7 @@ * "Jeffrey" # This unit test is supposed to check the functionality of the corresponding object. -[] > prints-complex-string +[] > tests-prints-complex-string eq. > @ "Привет 3.140000 Jeff X!" sprintf @@ -44,7 +46,7 @@ * 3.14 "Jeff" "X" # This unit test is supposed to check the functionality of the corresponding object. -[] > prints-bytes-string +[] > tests-prints-bytes-string eq. > @ "40-45-00-00-00-00-00-00" sprintf @@ -52,7 +54,7 @@ * 42.as-bytes # This unit test is supposed to check the functionality of the corresponding object. -[] > formats-all-objects +[] > tests-formats-all-objects eq. > @ "string Jeff, bytes 4A-65-66-66, float 42.300000, int 14, bool false" sprintf @@ -66,7 +68,7 @@ * "Jeff" # This unit test is supposed to check the functionality of the corresponding object. -[] > sprintf-does-not-fail-if-arguments-more-than-formats +[] > tests-sprintf-does-not-fail-if-arguments-more-than-formats eq. > @ "Hey" sprintf @@ -78,7 +80,7 @@ sprintf "%o" * > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > sprintf-prints-percents +[] > tests-sprintf-prints-percents eq. > @ "%Jeff" sprintf @@ -86,7 +88,7 @@ * "Jeff" # This unit test is supposed to check the functionality of the corresponding object. -[] > sprintf-does-not-print-i64 +[] > tests-sprintf-does-not-print-i64 not. > @ eq. sprintf @@ -95,7 +97,7 @@ "42" # This unit test is supposed to check the functionality of the corresponding object. -[] > sprintf-prints-i64-as-number +[] > tests-sprintf-prints-i64-as-number eq. > @ "42" sprintf diff --git a/tests/org/eolang/txt/sscanf-tests.eo b/tests/org/eolang/txt/sscanf-tests.eo index fab1028d..3b7f17e3 100644 --- a/tests/org/eolang/txt/sscanf-tests.eo +++ b/tests/org/eolang/txt/sscanf-tests.eo @@ -20,31 +20,32 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. ++alias org.eolang.structs.list +alias org.eolang.txt.sprintf +alias org.eolang.txt.sscanf -+alias org.eolang.structs.list +architect yegor256@gmail.com +home https://github.com/objectionary/eo +tests +package org.eolang.txt -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-string +[] > tests-sscanf-with-string eq. > @ "hello" value. sscanf "%s" "hello" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-int +[] > tests-sscanf-with-int eq. > @ 33 value. sscanf "%d" "33" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-float +[] > tests-sscanf-with-float eq. > @ 0.24 value. @@ -55,7 +56,7 @@ sscanf "%l" "error" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-string-int-float +[] > tests-sscanf-with-string-int-float eq. > @ list sscanf @@ -64,35 +65,35 @@ * "hello" 33 0.24 # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-string-with-ending +[] > tests-sscanf-with-string-with-ending eq. > @ "hello" value. sscanf "%s!" "hello!" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-complex-string +[] > tests-sscanf-with-complex-string eq. > @ "test" value. sscanf "some%sstring" "someteststring" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-complex-int +[] > tests-sscanf-with-complex-int eq. > @ 734987259 value. sscanf "!%d!" "!734987259!" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-complex-float +[] > tests-sscanf-with-complex-float eq. > @ 1991.01 value. sscanf "this will be=%f" "this will be=1991.01" # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-with-sprintf +[] > tests-sscanf-with-sprintf eq. > @ list sscanf @@ -103,7 +104,7 @@ * "This" 8 # This unit test is supposed to check the functionality of the corresponding object. -[] > sscanf-complex-case +[] > tests-sscanf-complex-case eq. > @ list sscanf diff --git a/tests/org/eolang/txt/text-tests.eo b/tests/org/eolang/txt/text-tests.eo index 133c9710..bb3f3cf4 100644 --- a/tests/org/eolang/txt/text-tests.eo +++ b/tests/org/eolang/txt/text-tests.eo @@ -27,112 +27,113 @@ +home https://github.com/objectionary/eo +tests +package org.eolang.txt -+version 0.50.2 ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > text-slices-the-origin-string +[] > tests-text-slices-the-origin-string eq. > @ (text "Hello, world!").slice 7 5 "world" # This unit test is supposed to check the functionality of the corresponding object. -[] > trimmed-left-empty-text +[] > tests-trimmed-left-empty-text eq. > @ (text "").trimmed-left "" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-left-one-space +[] > tests-text-trimmed-left-one-space eq. > @ (text " s").trimmed-left "s" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-left-many-spaces +[] > tests-text-trimmed-left-many-spaces eq. > @ (text " some").trimmed-left "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-left-only-spaces +[] > tests-text-trimmed-left-only-spaces eq. > @ (text " ").trimmed-left "" # This unit test is supposed to check the functionality of the corresponding object. -[] > trimmed-right-empty-text +[] > tests-trimmed-right-empty-text eq. > @ (text "").trimmed-right "" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-right-one-space +[] > tests-text-trimmed-right-one-space eq. > @ (text "s ").trimmed-right "s" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-right-many-spaces +[] > tests-text-trimmed-right-many-spaces eq. > @ (text "some ").trimmed-right "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-right-only-spaces +[] > tests-text-trimmed-right-only-spaces eq. > @ (text " ").trimmed-right "" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-one-space-left +[] > tests-text-trimmed-one-space-left eq. > @ (text " some").trimmed "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-one-space-right +[] > tests-text-trimmed-one-space-right eq. > @ (text "some ").trimmed "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-one-space-both +[] > tests-text-trimmed-one-space-both eq. > @ (text " some ").trimmed "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-many-spaces +[] > tests-text-trimmed-many-spaces eq. > @ (text " some ").trimmed "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-empty +[] > tests-text-trimmed-empty eq. > @ (text "").trimmed "" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-trimmed-only-spaces +[] > tests-text-trimmed-only-spaces eq. > @ (text " ").trimmed "" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-first-char +[] > tests-returns-first-char eq. > @ "s" (text "some").at 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-third-char +[] > tests-returns-third-char eq. > @ "m" (text "some").at 2 # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-char-at-negative-index +[] > tests-returns-char-at-negative-index eq. > @ "m" (text "some").at -2 @@ -142,7 +143,7 @@ (text "some").at 10 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > chains-with-other-strings +[] > tests-chains-with-other-strings eq. > @ "Hello, world!" chained. @@ -153,7 +154,7 @@ "!" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-same-text-on-chaining-with-no-strings +[] > tests-returns-same-text-on-chaining-with-no-strings eq. > @ "Some" chained. @@ -161,20 +162,20 @@ * # This unit test is supposed to check the functionality of the corresponding object. -[] > joined-no-strings +[] > tests-joined-no-strings eq. > @ "" (text "-").joined * # This unit test is supposed to check the functionality of the corresponding object. -[] > joined-one-string +[] > tests-joined-one-string eq. > @ "some" (text "-").joined * "some" # This unit test is supposed to check the functionality of the corresponding object. -[] > joined-many-strings +[] > tests-joined-many-strings eq. > @ "hello-world-dear-friend" (text "-").joined @@ -185,31 +186,31 @@ (text "").repeated -1 > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > text-repeated-zero-times-is-empty +[] > tests-text-repeated-zero-times-is-empty eq. > @ "" (text "some").repeated 0 # This unit test is supposed to check the functionality of the corresponding object. -[] > text-repeated-five-times +[] > tests-text-repeated-five-times eq. > @ "heyheyheyheyhey" (text "hey").repeated 5 # This unit test is supposed to check the functionality of the corresponding object. -[] > index-of-non-existed-substring-with-more-length +[] > tests-index-of-non-existed-substring-with-more-length eq. > @ -1 (text "Hello").index-of "Somebody" # This unit test is supposed to check the functionality of the corresponding object. -[] > index-of-non-existed-substring-with-same-length +[] > tests-index-of-non-existed-substring-with-same-length eq. > @ -1 (text "Hello").index-of "world" # This unit test is supposed to check the functionality of the corresponding object. -[] > index-of-non-existed-substring-with-utf +[] > tests-index-of-non-existed-substring-with-utf eq. > @ -1 index-of. @@ -217,7 +218,7 @@ "x" # This unit test is supposed to check the functionality of the corresponding object. -[] > index-of-existed-substring-with-utf +[] > tests-index-of-existed-substring-with-utf eq. > @ 3 index-of. @@ -225,7 +226,7 @@ "в" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-index-of-substring +[] > tests-returns-valid-index-of-substring eq. > @ 6 index-of. @@ -233,58 +234,58 @@ "\n" # This unit test is supposed to check the functionality of the corresponding object. -[] > returns-valid-index-of-substring-in-the-end +[] > tests-returns-valid-index-of-substring-in-the-end eq. > @ 6 (text "Hello world").index-of "world" # This unit test is supposed to check the functionality of the corresponding object. -[] > starts-with-substring +[] > tests-starts-with-substring (text "Hello, world").starts-with "Hello" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-start-with-substring +[] > tests-does-not-start-with-substring not. > @ (text "Hello, world").starts-with "world" # This unit test is supposed to check the functionality of the corresponding object. -[] > ends-with-substring +[] > tests-ends-with-substring (text "Hello world!").ends-with "world!" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-end-with-substring +[] > tests-does-not-end-with-substring not. > @ (text "Hello world!").ends-with "Hello" # This unit test is supposed to check the functionality of the corresponding object. -[] > text-contains-substring +[] > tests-text-contains-substring (text "Hello, world!").contains "o, wo" > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > text-does-not-contain-substring +[] > tests-text-does-not-contain-substring not. > @ (text "Hello, world!").contains "Hey" # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-last-index-of-substring +[] > tests-finds-last-index-of-substring eq. > @ 5 (text "Hey, Hey, Hey").last-index-of "Hey," # This unit test is supposed to check the functionality of the corresponding object. -[] > finds-last-index-of-the-same-string +[] > tests-finds-last-index-of-the-same-string eq. > @ 0 (text "Hello").last-index-of "Hello" # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-non-existed-substring +[] > tests-last-index-of-non-existed-substring eq. > @ -1 (text "Hello, world").last-index-of "somebody" # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-non-existed-substring-with-utf +[] > tests-last-index-of-non-existed-substring-with-utf eq. > @ -1 last-index-of. @@ -292,7 +293,7 @@ "x" # This unit test is supposed to check the functionality of the corresponding object. -[] > last-index-of-existed-substring-with-utf +[] > tests-last-index-of-existed-substring-with-utf eq. > @ 3 last-index-of. @@ -300,27 +301,27 @@ "в" # This unit test is supposed to check the functionality of the corresponding object. -[] > splits-text-by-dash +[] > tests-splits-text-by-dash eq. > @ list (text "a-b-c").split "-" * "a" "b" "c" # This unit test is supposed to check the functionality of the corresponding object. -[] > splits-text-with-empty-strings +[] > tests-splits-text-with-empty-strings eq. > @ list (text "-a-b-").split "-" * "" "a" "b" "" # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-text-to-upper-case +[] > tests-converts-text-to-upper-case eq. > @ "HELLO" (text "hello").up-cased # This unit test is supposed to check the functionality of the corresponding object. -[] > splits-and-returns-strings +[] > tests-splits-and-returns-strings eq. > @ length. at. @@ -331,25 +332,25 @@ 6 # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-text-with-upper-letters-to-upper-case +[] > tests-converts-text-with-upper-letters-to-upper-case eq. > @ "HELLO" (text "HeLlO").up-cased # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-text-to-lower-case +[] > tests-converts-text-to-lower-case eq. > @ "hello" (text "HELLO").low-cased # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-text-with-low-letters-to-lower-case +[] > tests-converts-text-with-low-letters-to-lower-case eq. > @ "hello" (text "HeLlO").low-cased # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-text-to-number +[] > tests-converts-text-to-number eq. > @ 5 (text "5").as-number @@ -359,71 +360,71 @@ (text "Hello").as-number > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > converts-float-text-to-number +[] > tests-converts-float-text-to-number eq. > @ 3.14 (text "3.14").as-number # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-text-is-ascii +[] > tests-checks-if-text-is-ascii is-ascii. > @ text "H311oW" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-emoji-is-not-ascii +[] > tests-checks-if-emoji-is-not-ascii not. > @ is-ascii. text "🌵" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-string-of-numbers-is-ascii +[] > tests-checks-if-string-of-numbers-is-ascii is-ascii. > @ text "123" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-simple-text-is-alphanumeric +[] > tests-checks-if-simple-text-is-alphanumeric is-alphanumeric. > @ text "eEo" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-text-with-number-is-alphanumeric +[] > tests-checks-if-text-with-number-is-alphanumeric is-alphanumeric. > @ text "ab3d" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-text-with-dashes-is-not-alphanumeric +[] > tests-checks-if-text-with-dashes-is-not-alphanumeric not. > @ is-alphanumeric. text "-w-" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-simple-text-is-alpha +[] > tests-checks-if-simple-text-is-alpha is-alpha. > @ text "eEo" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-text-with-number-is-not-alpha +[] > tests-checks-if-text-with-number-is-not-alpha not. > @ is-alpha. text "ab3d" # This unit test is supposed to check the functionality of the corresponding object. -[] > checks-if-text-with-dashes-is-not-alpha +[] > tests-checks-if-text-with-dashes-is-not-alpha not. > @ is-alpha. text "-w-" # This unit test is supposed to check the functionality of the corresponding object. -[] > does-not-replaces-if-regex-not-found +[] > tests-does-not-replaces-if-regex-not-found text "Hello, world" .replaced @@ -434,7 +435,7 @@ "Hello, world" # This unit test is supposed to check the functionality of the corresponding object. -[] > replaces-digits-with-string +[] > tests-replaces-digits-with-string text "Hell0, w0rld" .replaced @@ -445,7 +446,7 @@ "Hello, world" # This unit test is supposed to check the functionality of the corresponding object. -[] > replaces-slashes-to-windows-separator +[] > tests-replaces-slashes-to-windows-separator text "C:\\Windows/foo\\bar/hello.txt" .replaced @@ -456,7 +457,7 @@ "C:\\Windows\\foo\\bar\\hello.txt" # This unit test is supposed to check the functionality of the corresponding object. -[] > replaces-windows-path-with-slash +[] > tests-replaces-windows-path-with-slash text "C:\\Windows\\Users\\AppLocal\\shrek" .replaced @@ -467,7 +468,7 @@ "C/Windows/Users/AppLocal/shrek" # This unit test is supposed to check the functionality of the corresponding object. -[] > sanitizes-windows-path-with-regex +[] > tests-sanitizes-windows-path-with-regex text "foo\\bar<:>?*\"|baz\\asdf" .replaced diff --git a/tests/org/eolang/while-tests.eo b/tests/org/eolang/while-tests.eo index 8ddee935..204d27a2 100644 --- a/tests/org/eolang/while-tests.eo +++ b/tests/org/eolang/while-tests.eo @@ -24,11 +24,11 @@ +home https://github.com/objectionary/eo +tests +package org.eolang -+version 0.50.2 -+unlint broken-ref ++version 0.51.3 ++unlint sparse-decoration # This unit test is supposed to check the functionality of the corresponding object. -[] > while-dataizes-only-first-cycle +[] > tests-while-dataizes-only-first-cycle eq. > @ 0 malloc.for @@ -39,14 +39,14 @@ m.put i > [i] >> # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-while-with-false-first +[] > tests-simple-while-with-false-first not. > @ while > res false > [i] true > [i] # This unit test is supposed to check the functionality of the corresponding object. -[] > simple-bool-expression-via-malloc-in-while +[] > tests-simple-bool-expression-via-malloc-in-while eq. > @ malloc.for true @@ -57,7 +57,7 @@ false # This unit test is supposed to check the functionality of the corresponding object. -[] > last-while-dataization-object +[] > tests-last-while-dataization-object eq. > @ malloc.for 0 @@ -68,14 +68,14 @@ 3 # This unit test is supposed to check the functionality of the corresponding object. -[] > last-while-dataization-object-with-false-condition +[] > tests-last-while-dataization-object-with-false-condition not. > @ while 1.gt 2 > [i] true > [i] # This unit test is supposed to check the functionality of the corresponding object. -[] > while-simple-iteration +[] > tests-while-simple-iteration eq. > @ malloc.for 0 @@ -86,7 +86,7 @@ 9 # This unit test is supposed to check the functionality of the corresponding object. -[] > iterating-tuple-with-while-using-internal-iterator +[] > tests-iterating-tuple-with-while-using-internal-iterator * 1 1 1 1 > arr arr.length.plus -1 > max malloc.for > data @@ -113,7 +113,7 @@ data.eq arr.length > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > iterating-tuple-with-while-using-external-iterator +[] > tests-iterating-tuple-with-while-using-external-iterator * 1 1 1 1 > arr arr.length.plus -1 > max malloc.for > data @@ -135,7 +135,7 @@ data.eq arr.length > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > iterating-tuple-with-while-without-body-multiple +[] > tests-iterating-tuple-with-while-without-body-multiple * 1 1 1 > arr arr.length > max malloc.for > data @@ -165,7 +165,7 @@ data.eq arr.length > @ # This unit test is supposed to check the functionality of the corresponding object. -[] > iterating-tuple-with-while-without-body-single +[] > tests-iterating-tuple-with-while-without-body-single * 1 > arr arr.length > max malloc.for > data