From 5e515f432c3d19f49fcf9dcfb61276b3932457de Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:34:20 -0300 Subject: [PATCH 001/114] [Types\to] add test file --- tests/unitt/lib/types/to.test.art | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/unitt/lib/types/to.test.art diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art new file mode 100644 index 0000000000..4abb8cf4a4 --- /dev/null +++ b/tests/unitt/lib/types/to.test.art @@ -0,0 +1 @@ +import {unitt}! From 799543176de6d7b0db5b70ab66b40f9227c993fa Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:35:10 -0300 Subject: [PATCH 002/114] [Types\to] add test from :null --- tests/unitt/lib/types/to.test.art | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 4abb8cf4a4..90e7f6f9c7 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1 +1,25 @@ import {unitt}! + +suite "to :integer" [ + + test "from :null:" [ + assert -> zero? to :integer null + ] + +] + +suite "to :logical" [ + + test "from :null:" [ + assert -> false? to :logical null + ] + +] + +suite "to :string" [ + + test "from :null:" [ + assert -> "null" = to :string null + ] + +] \ No newline at end of file From 593844a2c7a16f9cafca4e69f64f7f0928edb6b7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:36:33 -0300 Subject: [PATCH 003/114] [Types\to] add TODO --- src/helpers/conversion.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/conversion.nim b/src/helpers/conversion.nim index 0c87066327..f5c99819b8 100644 --- a/src/helpers/conversion.nim +++ b/src/helpers/conversion.nim @@ -61,6 +61,7 @@ proc convertedValueToType*(x, y: Value, tp: ValueKind, aFormat:Value = nil): Val case y.kind: of Null: case tp: + # TODO(Converters) should support :null -> :floating of Logical: return VFALSE of Integer: return I0 of String: return newString("null") From d053a83b0a1c31e4c32a4d7f51f876918580aca5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:36:47 -0300 Subject: [PATCH 004/114] [Types\to] add temporary test --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 90e7f6f9c7..0ba1182142 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,5 +1,13 @@ import {unitt}! +suite "to :floating" [ + + test.skip "from :null:" [ + assert -> zero? to :floating null + ] + +] + suite "to :integer" [ test "from :null:" [ From 0d1685cb29ccf34bfea9d9481ffdc6ff04008417 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:37:20 -0300 Subject: [PATCH 005/114] [Types\to] add tests from :logical --- tests/unitt/lib/types/to.test.art | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 0ba1182142..38c9119214 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -6,6 +6,12 @@ suite "to :floating" [ assert -> zero? to :floating null ] + test "from :logical:" [ + assert -> one? to :floating true + assert -> zero? to :floating false + assert -> null? to :floating maybe + ] + ] suite "to :integer" [ @@ -14,6 +20,12 @@ suite "to :integer" [ assert -> zero? to :integer null ] + test "from :logical:" [ + assert -> one? to :integer true + assert -> zero? to :integer false + assert -> null? to :integer maybe + ] + ] suite "to :logical" [ @@ -30,4 +42,10 @@ suite "to :string" [ assert -> "null" = to :string null ] + test "from :logical:" [ + assert -> "true" = to :integer true + assert -> "false" = to :integer false + assert -> "null" = to :integer maybe + ] + ] \ No newline at end of file From 1272c6e0db00451a3bd0327ef3e86afdf01b43cf Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:37:50 -0300 Subject: [PATCH 006/114] [Types\to] minor fix --- tests/unitt/lib/types/to.test.art | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 38c9119214..96a391b2ce 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -45,7 +45,7 @@ suite "to :string" [ test "from :logical:" [ assert -> "true" = to :integer true assert -> "false" = to :integer false - assert -> "null" = to :integer maybe + assert -> "maybe" = to :integer maybe ] ] \ No newline at end of file From 2f5512d36642b51d85f38dc6142b79f8656dc07e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Fri, 28 Feb 2025 23:59:08 -0300 Subject: [PATCH 007/114] [Types\to] add special syntax for testing --- tests/unitt/lib/types/to.test.art | 71 +++++++++++++++++-------------- 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 96a391b2ce..7309ad830a 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,51 +1,56 @@ import {unitt}! -suite "to :floating" [ - test.skip "from :null:" [ - assert -> zero? to :floating null +fromTo: $[sourceType :type targetType :type cases :block][ + test ~"|targetType| from |sourceType|:" + flatten.once map @cases 'p [ + source: first p + expected: last p + assertion: [equal?] + | append expected + | append [to] + | append targetType + | append source + + [assert] ++ @[assertion] ] - - test "from :logical:" [ - assert -> one? to :floating true - assert -> zero? to :floating false - assert -> null? to :floating maybe - ] - ] -suite "to :integer" [ +alias.infix {==>} 'fromTo - test "from :null:" [ - assert -> zero? to :integer null - ] +pair: $[source target][ + @[source target] +] - test "from :logical:" [ - assert -> one? to :integer true - assert -> zero? to :integer false - assert -> null? to :integer maybe - ] +alias.infix {>>} 'pair +fromTo :null :logical [ + null >> false ] -suite "to :logical" [ - - test "from :null:" [ - assert -> false? to :logical null - ] +fromTo :null :integer [ + null >> 0 +] +fromTo :null :string [ + null >> "null" ] -suite "to :string" [ - test "from :null:" [ - assert -> "null" = to :string null - ] +fromTo :logical :floating [ + true >> 1.0 + false >> 0.0 + maybe >> null +] - test "from :logical:" [ - assert -> "true" = to :integer true - assert -> "false" = to :integer false - assert -> "maybe" = to :integer maybe - ] +fromTo :logical :floating [ + true >> 1.0 + false >> 0.0 + maybe >> null +] +fromTo :logical :string [ + true >> "true" + false >> "false" + maybe >> "maybe" ] \ No newline at end of file From c234b315542e332fc4e050eee3a5a4d28e4abbf9 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:30:23 -0300 Subject: [PATCH 008/114] [Types\to] use a simpler syntax --- tests/unitt/lib/types/to.test.art | 34 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 7309ad830a..c0c0b023a8 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,8 +1,8 @@ import {unitt}! -fromTo: $[sourceType :type targetType :type cases :block][ - test ~"|targetType| from |sourceType|:" +for: $[targetType :type cases :block][ + test ~"to |targetType|:" flatten.once map @cases 'p [ source: first p expected: last p @@ -16,40 +16,38 @@ fromTo: $[sourceType :type targetType :type cases :block][ ] ] -alias.infix {==>} 'fromTo - pair: $[source target][ @[source target] ] alias.infix {>>} 'pair -fromTo :null :logical [ - null >> false -] +; -------------------------------------- -fromTo :null :integer [ +for :integer [ + ; From :null null >> 0 ] -fromTo :null :string [ - null >> "null" -] - +for :floating [ + ; From :null + ; null >> 0.0 -fromTo :logical :floating [ + ; From :logical true >> 1.0 false >> 0.0 maybe >> null ] -fromTo :logical :floating [ - true >> 1.0 - false >> 0.0 - maybe >> null +for :logical [ + ; From :null + null >> false ] -fromTo :logical :string [ +for :string [ + ; From :null + null >> "null" + true >> "true" false >> "false" maybe >> "maybe" From 54368f486e9c38113a5823e0247e4177120f2f58 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:32:02 -0300 Subject: [PATCH 009/114] [Types\to] test from :logical --- tests/unitt/lib/types/to.test.art | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index c0c0b023a8..c626d6cdf7 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -27,6 +27,11 @@ alias.infix {>>} 'pair for :integer [ ; From :null null >> 0 + + ; From :logical + true >> 1 + false >> 0 + maybe >> null ] for :floating [ @@ -42,12 +47,18 @@ for :floating [ for :logical [ ; From :null null >> false + + ; From :logical + true >> 1.0 + false >> 0.0 + maybe >> null ] for :string [ ; From :null null >> "null" + ; From :logical true >> "true" false >> "false" maybe >> "maybe" From a3e96e4083288c74069e06c649eb5cac9b634cbf Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:32:34 -0300 Subject: [PATCH 010/114] [Types\to] minor fix --- tests/unitt/lib/types/to.test.art | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index c626d6cdf7..cd9be9e134 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -49,9 +49,9 @@ for :logical [ null >> false ; From :logical - true >> 1.0 - false >> 0.0 - maybe >> null + true >> true + false >> false + maybe >> maybe ] for :string [ From 4bd1012a07932f0cb6d21408354c3924f1ec1e74 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:37:45 -0300 Subject: [PATCH 011/114] [Types\to] add from :integer tests --- tests/unitt/lib/types/to.test.art | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index cd9be9e134..a5ae31eb8f 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -32,8 +32,14 @@ for :integer [ true >> 1 false >> 0 maybe >> null + + ; From :integer + 1 >> 1 + 0 >> 0 + (neg 1) >> (neg 1) ] + for :floating [ ; From :null ; null >> 0.0 @@ -42,8 +48,14 @@ for :floating [ true >> 1.0 false >> 0.0 maybe >> null + + ; From :integer + 1 >> 1.0 + 0 >> 0.0 + (neg 1) >> (neg 1.0) ] + for :logical [ ; From :null null >> false @@ -52,8 +64,16 @@ for :logical [ true >> true false >> false maybe >> maybe + + ; from :integer + 0 >> false + 1 >> true + (neg 1) >> true + (random 1 1000) >> true + (random neg 1000 neg 1) >> true ] + for :string [ ; From :null null >> "null" @@ -62,4 +82,9 @@ for :string [ true >> "true" false >> "false" maybe >> "maybe" + + ; From :integer + 1 >> "1" + 0 >> "0" + (neg 1) >> "-1" ] \ No newline at end of file From 15e2d6cf4202fa2be994dc40164ff9a0c12a9d05 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:38:53 -0300 Subject: [PATCH 012/114] move function to separate module --- tests/unitt/lib/types/to.helper.art | 20 ++++++++++++++++++++ tests/unitt/lib/types/to.test.art | 25 +------------------------ 2 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 tests/unitt/lib/types/to.helper.art diff --git a/tests/unitt/lib/types/to.helper.art b/tests/unitt/lib/types/to.helper.art new file mode 100644 index 0000000000..26f30b6f10 --- /dev/null +++ b/tests/unitt/lib/types/to.helper.art @@ -0,0 +1,20 @@ +for: $[targetType :type cases :block][ + test ~"to |targetType|:" + flatten.once map @cases 'p [ + source: first p + expected: last p + assertion: [equal?] + | append expected + | append [to] + | append targetType + | append source + + [assert] ++ @[assertion] + ] +] + +pair: $[source target][ + @[source target] +] + +alias.infix {>>} 'pair \ No newline at end of file diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index a5ae31eb8f..720dce5553 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,28 +1,5 @@ import {unitt}! - - -for: $[targetType :type cases :block][ - test ~"to |targetType|:" - flatten.once map @cases 'p [ - source: first p - expected: last p - assertion: [equal?] - | append expected - | append [to] - | append targetType - | append source - - [assert] ++ @[assertion] - ] -] - -pair: $[source target][ - @[source target] -] - -alias.infix {>>} 'pair - -; -------------------------------------- +import ./{to.helper.art}! for :integer [ ; From :null From 2311615976c3bf5a34ed452704d133f66768d47b Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:44:36 -0300 Subject: [PATCH 013/114] [Types\to] use simpler syntax for tests --- tests/unitt/lib/types/to.helper.art | 26 ++++---- tests/unitt/lib/types/to.test.art | 96 ++++++++++++++++------------- 2 files changed, 69 insertions(+), 53 deletions(-) diff --git a/tests/unitt/lib/types/to.helper.art b/tests/unitt/lib/types/to.helper.art index 26f30b6f10..80133f6745 100644 --- a/tests/unitt/lib/types/to.helper.art +++ b/tests/unitt/lib/types/to.helper.art @@ -1,16 +1,20 @@ -for: $[targetType :type cases :block][ - test ~"to |targetType|:" - flatten.once map @cases 'p [ - source: first p - expected: last p - assertion: [equal?] - | append expected - | append [to] - | append targetType - | append source +for: $[targetType :type sections :block][ + section: $[sourceType :type cases :block][ + test ~"|sourceType| => |targetType|:" + flatten.once map @cases 'p [ + source: first p + expected: last p + assertion: [equal?] + | append expected + | append [to] + | append targetType + | append source - [assert] ++ @[assertion] + [assert] ++ @[assertion] + ] ] + + do sections ] pair: $[source target][ diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 720dce5553..f87c6e586c 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -2,66 +2,78 @@ import {unitt}! import ./{to.helper.art}! for :integer [ - ; From :null - null >> 0 + section :null [ + null >> 0 + ] - ; From :logical - true >> 1 - false >> 0 - maybe >> null + section :logical [ + true >> 1 + false >> 0 + maybe >> null + ] - ; From :integer - 1 >> 1 - 0 >> 0 - (neg 1) >> (neg 1) + section :integer [ + 1 >> 1 + 0 >> 0 + (neg 1) >> (neg 1) + ] ] for :floating [ - ; From :null - ; null >> 0.0 + section :null [ + ; null >> 0.0 + ] - ; From :logical - true >> 1.0 - false >> 0.0 - maybe >> null + section :logical [ + true >> 1.0 + false >> 0.0 + maybe >> null + ] - ; From :integer - 1 >> 1.0 - 0 >> 0.0 - (neg 1) >> (neg 1.0) + section :integer [ + 1 >> 1.0 + 0 >> 0.0 + (neg 1) >> (neg 1.0) + ] ] for :logical [ - ; From :null - null >> false + section :null [ + null >> false + ] - ; From :logical - true >> true - false >> false - maybe >> maybe + section :logical [ + true >> true + false >> false + maybe >> maybe + ] - ; from :integer - 0 >> false - 1 >> true - (neg 1) >> true - (random 1 1000) >> true - (random neg 1000 neg 1) >> true + section :integer [ + 0 >> false + 1 >> true + (neg 1) >> true + (random 1 1000) >> true + (random neg 1000 neg 1) >> true + ] ] for :string [ - ; From :null - null >> "null" + section :null [ + null >> "null" + ] - ; From :logical - true >> "true" - false >> "false" - maybe >> "maybe" + section :logical [ + true >> "true" + false >> "false" + maybe >> "maybe" + ] - ; From :integer - 1 >> "1" - 0 >> "0" - (neg 1) >> "-1" + section :integer [ + 1 >> "1" + 0 >> "0" + (neg 1) >> "-1" + ] ] \ No newline at end of file From fd1323fd5aefad1f5a54847ef479e23b8fd2ec31 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:48:25 -0300 Subject: [PATCH 014/114] [Types\to] test :null => :rational --- tests/unitt/lib/types/to.test.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index f87c6e586c..c37a19e471 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -76,4 +76,23 @@ for :string [ 0 >> "0" (neg 1) >> "-1" ] +] + +for :rational [ + + section :null [ + ; null >> 0:1 + ] + + section :logical [ + ; true >> 1:1 + ; false >> 0:1 + ; maybe >> null + ] + + section :integer [ + 1 >> 1:1 + 0 >> 0:1 + (neg 1) >> neg 1:1 + ] ] \ No newline at end of file From ab2b1c3b47403a3002faa1ff35165ed5b73776e5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:50:51 -0300 Subject: [PATCH 015/114] [Types\to] test :integer => :char --- tests/unitt/lib/types/to.test.art | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index c37a19e471..71f43a0896 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -95,4 +95,13 @@ for :rational [ 0 >> 0:1 (neg 1) >> neg 1:1 ] +] + +for :char [ + + section :integer [ + 75 >> 'K' + 1000 >> 'Ϩ' ; supports UNICODE + ] + ] \ No newline at end of file From 67347273a82c39ed61dd69951ab3473c4b5e447a Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:54:23 -0300 Subject: [PATCH 016/114] [Types\to] add missing tests to :char --- tests/unitt/lib/types/to.test.art | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 71f43a0896..405f14239d 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -99,6 +99,16 @@ for :rational [ for :char [ + section :null [ + ; null >> '' ; Should be '\0' + ] + + section :logical [ + ; true >> 'Y' + ; false >> 'N' + ; maybe >> '?' + ] + section :integer [ 75 >> 'K' 1000 >> 'Ϩ' ; supports UNICODE From 193aa3d7ecfbdca4f6fb11745caa4dd6b2feb601 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:57:24 -0300 Subject: [PATCH 017/114] [Types\to] test :integer => :quantity --- tests/unitt/lib/types/to.test.art | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 405f14239d..69d40b547d 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -114,4 +114,14 @@ for :char [ 1000 >> 'Ϩ' ; supports UNICODE ] +] + +for :quantity [ + + section :integer [ + 0 >> 0` + 1 >> 1` + (neg 1) >> neg 1` + ] + ] \ No newline at end of file From 24f71af49f00f4e3d96900655afde0c63604c2c8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 19:59:33 -0300 Subject: [PATCH 018/114] [Types\to] test :integer => :date --- tests/unitt/lib/types/to.test.art | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 69d40b547d..f5f862d39a 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -124,4 +124,13 @@ for :quantity [ (neg 1) >> neg 1` ] +] + + +for :date [ + + section :integer [ + 0 >> to :date "1969-12-31T21:00:00-03:00" + ] + ] \ No newline at end of file From 61444b363c88fe22ed21ba7d4c5ad42c858ae34c Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:03:29 -0300 Subject: [PATCH 019/114] [Types\to] test :integer => :binary --- tests/unitt/lib/types/to.test.art | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index f5f862d39a..ac3570ecea 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -133,4 +133,15 @@ for :date [ 0 >> to :date "1969-12-31T21:00:00-03:00" ] +] + +for :binary [ + + section :integer [ + ; There is no such way of properly testing it right now? + 0 >> to :binary 0 ; Should be 0b0000 + 1 >> to :binary 1 ; Should be 0b0001 + (neg 1) >> to :binary neg 1 ; Should be 0b1111 + ] + ] \ No newline at end of file From 722f2f608fb827b174ae1571b8666024ba2fda56 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:04:49 -0300 Subject: [PATCH 020/114] [Types\to] add missing tests for :quantity --- tests/unitt/lib/types/to.test.art | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index ac3570ecea..9ed4ba36d0 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -118,6 +118,16 @@ for :char [ for :quantity [ + section :null [ + ; null >> 0` + ] + + section :logical [ + ; true >> 1` + ; false >> 0` + ; maybe >> null + ] + section :integer [ 0 >> 0` 1 >> 1` From 4f691d82053f7d05e77374ebbb5eda856d14472b Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:06:50 -0300 Subject: [PATCH 021/114] [Types\to] add missing tests for :date --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 9ed4ba36d0..c60a5590e3 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -139,6 +139,14 @@ for :quantity [ for :date [ + section :null [ + + ] + + section :logical [ + + ] + section :integer [ 0 >> to :date "1969-12-31T21:00:00-03:00" ] From ee2c8fedef571a000fc9cff828ea6abb3bc1efd6 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:20:26 -0300 Subject: [PATCH 022/114] [Types\to] test from :floating --- tests/unitt/lib/types/to.test.art | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index c60a5590e3..4b034b0c8c 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -17,6 +17,12 @@ for :integer [ 0 >> 0 (neg 1) >> (neg 1) ] + + section :integer [ + 1.0 >> 1 + 0.0 >> 0 + (neg 1.0) >> (neg 1) + ] ] @@ -36,6 +42,12 @@ for :floating [ 0 >> 0.0 (neg 1) >> (neg 1.0) ] + + section :floating [ + 1.0 >> 1.0 + 0.0 >> 0.0 + (neg 1.0) >> (neg 1.0) + ] ] @@ -57,6 +69,12 @@ for :logical [ (random 1 1000) >> true (random neg 1000 neg 1) >> true ] + + section :floating [ + 0.0 >> false + 1.0 >> true + (neg 1.0) >> true + ] ] @@ -76,6 +94,12 @@ for :string [ 0 >> "0" (neg 1) >> "-1" ] + + section :floating [ + 1.0 >> "1.0" + 0.0 >> "0.0" + (neg 1.0) >> "-1.0" + ] ] for :rational [ @@ -95,6 +119,12 @@ for :rational [ 0 >> 0:1 (neg 1) >> neg 1:1 ] + + section :floating [ + 1.0 >> 1:1 + 0.0 >> 0:1 + (neg 1.0) >> neg 1:1 + ] ] for :char [ @@ -113,6 +143,11 @@ for :char [ 75 >> 'K' 1000 >> 'Ϩ' ; supports UNICODE ] + + section :floating [ + 75.0 >> 'K' + 50.0 >> '2' + ] ] @@ -133,6 +168,13 @@ for :quantity [ 1 >> 1` (neg 1) >> neg 1` ] + + section :floating [ + 0.0 >> 0` + 1.0 >> 1` + (neg 1.0) >> neg 1` + 1.5 >> 1.5` + ] ] @@ -161,5 +203,12 @@ for :binary [ 1 >> to :binary 1 ; Should be 0b0001 (neg 1) >> to :binary neg 1 ; Should be 0b1111 ] + + section :floating [ + ; There is no such way of properly testing it right now? + 0.0 >> to :binary 0 ; Should be 0b0000 + 1.0 >> to :binary 1 ; Should be 0b0001 + (neg 1.0) >> to :binary neg 1 ; Should be 0b1111 + ] ] \ No newline at end of file From 3dab5289157be68e5a340175bb2e82da4a65ed74 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:21:35 -0300 Subject: [PATCH 023/114] [Types\to] minor fix --- tests/unitt/lib/types/to.test.art | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 4b034b0c8c..419ca41f45 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -18,7 +18,7 @@ for :integer [ (neg 1) >> (neg 1) ] - section :integer [ + section :floating [ 1.0 >> 1 0.0 >> 0 (neg 1.0) >> (neg 1) From 3f74547e7de3b6e3c72ccd21691a126574979fd3 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:21:53 -0300 Subject: [PATCH 024/114] [Types\to] add more test cases for :floating => :integer --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 419ca41f45..54e8fc43ef 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -22,6 +22,10 @@ for :integer [ 1.0 >> 1 0.0 >> 0 (neg 1.0) >> (neg 1) + + 1.1 >> 1 + 1.5 >> 1 + 1.9 >> 1 ] ] From d2ab3c0b61cb55984d2dd9dd4ac541b00f9eae36 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:22:50 -0300 Subject: [PATCH 025/114] [Types\to] add missing cases --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 54e8fc43ef..270c4637d5 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -201,6 +201,14 @@ for :date [ for :binary [ + section :null [ + + ] + + section :logical [ + + ] + section :integer [ ; There is no such way of properly testing it right now? 0 >> to :binary 0 ; Should be 0b0000 From d56ec76f05e1c8380e0e475934e42129aeba5cb2 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:27:00 -0300 Subject: [PATCH 026/114] [Types\to] skip floating test (inconsistent) --- tests/unitt/lib/types/to.test.art | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 270c4637d5..ee531bb34f 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -218,9 +218,10 @@ for :binary [ section :floating [ ; There is no such way of properly testing it right now? - 0.0 >> to :binary 0 ; Should be 0b0000 - 1.0 >> to :binary 1 ; Should be 0b0001 - (neg 1.0) >> to :binary neg 1 ; Should be 0b1111 + ; 0.0 >> to :binary 0 ; Should be 0b0000 + ; 1.0 >> to :binary 1 ; Should be 0b0001 + ; (neg 1.0) >> to :binary neg 1 ; Should be 0b1111 + ] ] ] \ No newline at end of file From 31dd7fa0093afb770758733c9899448a1bbf07e7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:28:54 -0300 Subject: [PATCH 027/114] [Types\to] test :complex => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index ee531bb34f..6b84e29102 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -104,6 +104,10 @@ for :string [ 0.0 >> "0.0" (neg 1.0) >> "-1.0" ] + + section :complex [ + (to :complex [1 5]) >> "1.0+5.0i" + ] ] for :rational [ From d8f8a1a70e890098fd5a77f0ec0cffd346ab383f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:29:14 -0300 Subject: [PATCH 028/114] [Types\to] add missing tests --- tests/unitt/lib/types/to.test.art | 33 ++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 6b84e29102..97cb592e3a 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -27,6 +27,10 @@ for :integer [ 1.5 >> 1 1.9 >> 1 ] + + section :complex [ + + ] ] @@ -52,6 +56,10 @@ for :floating [ 0.0 >> 0.0 (neg 1.0) >> (neg 1.0) ] + + section :complex [ + + ] ] @@ -79,6 +87,10 @@ for :logical [ 1.0 >> true (neg 1.0) >> true ] + + section :complex [ + + ] ] @@ -133,6 +145,10 @@ for :rational [ 0.0 >> 0:1 (neg 1.0) >> neg 1:1 ] + + section :complex [ + + ] ] for :char [ @@ -157,6 +173,10 @@ for :char [ 50.0 >> '2' ] + section :complex [ + + ] + ] for :quantity [ @@ -184,6 +204,10 @@ for :quantity [ 1.5 >> 1.5` ] + section :complex [ + + ] + ] @@ -201,6 +225,10 @@ for :date [ 0 >> to :date "1969-12-31T21:00:00-03:00" ] + section :complex [ + + ] + ] for :binary [ @@ -210,7 +238,7 @@ for :binary [ ] section :logical [ - + ] section :integer [ @@ -226,6 +254,9 @@ for :binary [ ; 1.0 >> to :binary 1 ; Should be 0b0001 ; (neg 1.0) >> to :binary neg 1 ; Should be 0b1111 ] + + section :complex [ + ] ] \ No newline at end of file From 46feeb708cb6dfd86d0251674b93fcee8878afb6 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:35:57 -0300 Subject: [PATCH 029/114] [Types\to] fix test helper function for :block types --- tests/unitt/lib/types/to.helper.art | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unitt/lib/types/to.helper.art b/tests/unitt/lib/types/to.helper.art index 80133f6745..356cd4a970 100644 --- a/tests/unitt/lib/types/to.helper.art +++ b/tests/unitt/lib/types/to.helper.art @@ -5,10 +5,10 @@ for: $[targetType :type sections :block][ source: first p expected: last p assertion: [equal?] - | append expected + | append @[expected] | append [to] | append targetType - | append source + | append @[source] [assert] ++ @[assertion] ] From a90d46f0c5c29657929bcf3346c8e8d9030cc4c1 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:36:46 -0300 Subject: [PATCH 030/114] [Types\to] test :complex => :block --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 97cb592e3a..df7083db07 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -259,4 +259,12 @@ for :binary [ ] +] + +for :block [ + + section :complex [ + (to :complex [1 5]) >> [1.0 5.0] + ] + ] \ No newline at end of file From 3dd3f2b2eb38ee03330af0391f5ed73a13e5881f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:37:30 -0300 Subject: [PATCH 031/114] [Types\to] add empty tests for :block --- tests/unitt/lib/types/to.test.art | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index df7083db07..45e9da9a91 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -263,6 +263,22 @@ for :binary [ for :block [ + section :null [ + + ] + + section :logical [ + + ] + + section :integer [ + + ] + + section :floating [ + + ] + section :complex [ (to :complex [1 5]) >> [1.0 5.0] ] From bed3bd61ac8e9599101dc773b0403bbf7efec559 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:51:48 -0300 Subject: [PATCH 032/114] [Types\to] test :rational => :floating --- tests/unitt/lib/types/to.test.art | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 45e9da9a91..8fca8edc11 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -60,6 +60,12 @@ for :floating [ section :complex [ ] + + section :rational [ + 1:1 >> 1.0 + 0:1 >> 0.0 + (neg 1:1) >> neg 1.0 + ] ] From 0e8ff88a85469e4c11718e05f84ba218456a5ca8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:52:05 -0300 Subject: [PATCH 033/114] [Types\to] test :rational => :integer --- tests/unitt/lib/types/to.test.art | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 8fca8edc11..5fe14123d9 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -31,6 +31,12 @@ for :integer [ section :complex [ ] + + section :rational [ + 1:1 >> 1 + 0:1 >> 0 + (neg 1:1) >> neg 1 + ] ] From 331983083f745889a1b8310f3dda783431ca0fde Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:52:23 -0300 Subject: [PATCH 034/114] [Types\to] test :rational => :string --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 5fe14123d9..4a2f4392b6 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -132,6 +132,14 @@ for :string [ section :complex [ (to :complex [1 5]) >> "1.0+5.0i" ] + + section :rational [ + 1:1 >> "1/1" + 0:2 >> "0/1" + 2:10 >> "1/5" + (neg 2:10) >> "-1/5" + ] + ] for :rational [ From 45eca7b61c139b942428314372662ffbf531354d Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:52:41 -0300 Subject: [PATCH 035/114] [Types\to] test :rational => :block --- tests/unitt/lib/types/to.test.art | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 4a2f4392b6..6facb77973 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -302,5 +302,12 @@ for :block [ section :complex [ (to :complex [1 5]) >> [1.0 5.0] ] + + section :rational [ + 1:2 >> [1 2] + 0:5 >> [0 1] + 2:10 >> [1 5] + (neg 1:5) >> @[neg 1 5] + ] ] \ No newline at end of file From aa1336a8f21206b9f8c17959c29622c6147323e5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:52:54 -0300 Subject: [PATCH 036/114] [Types\to] add empty tests --- tests/unitt/lib/types/to.test.art | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 6facb77973..b0793612ec 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -103,6 +103,10 @@ for :logical [ section :complex [ ] + + section :rational [ + + ] ] @@ -169,6 +173,11 @@ for :rational [ section :complex [ ] + + section :rational [ + + ] + ] for :char [ @@ -197,6 +206,10 @@ for :char [ ] + section :rational [ + + ] + ] for :quantity [ @@ -228,6 +241,10 @@ for :quantity [ ] + section :rational [ + + ] + ] @@ -249,6 +266,10 @@ for :date [ ] + section :rational [ + + ] + ] for :binary [ @@ -279,6 +300,10 @@ for :binary [ ] + section :rational [ + + ] + ] for :block [ From a58a687c268f8f82a0c05bdcc35ac06a0b04e425 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:54:39 -0300 Subject: [PATCH 037/114] [Types\to] create :version test suite --- tests/unitt/lib/types/to.test.art | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b0793612ec..a4aff4cea3 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -335,4 +335,32 @@ for :block [ (neg 1:5) >> @[neg 1 5] ] +] + +for :version [ + + section :null [ + + ] + + section :logical [ + + ] + + section :integer [ + + ] + + section :floating [ + + ] + + section :complex [ + + ] + + section :rational [ + + ] + ] \ No newline at end of file From b84070d326330d449c151e55c2d9deaf6076dced Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:56:37 -0300 Subject: [PATCH 038/114] [Types\to] test :version => :string --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index a4aff4cea3..d4d9fe6f80 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -144,6 +144,11 @@ for :string [ (neg 2:10) >> "-1/5" ] + section :version [ + 1.2.3 >> "1.2.3" + 1.2.3-pre >> "1.2.3-pre" + ] + ] for :rational [ From e7d6b7bd7bcc8cbdf56d646c947802975819b995 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:58:04 -0300 Subject: [PATCH 039/114] minor fix --- tests/unitt/lib/types/to.test.art | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index d4d9fe6f80..b6c29e5d66 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -247,7 +247,9 @@ for :quantity [ ] section :rational [ - + 1:1 >> 1` + 0:1 >> 0` + (neg 1:1) >> neg 1` ] ] From 9bbb0567622300a9e76ce519c6770e6a49e642f1 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:58:20 -0300 Subject: [PATCH 040/114] [Types\to] add missing :version tests --- tests/unitt/lib/types/to.test.art | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b6c29e5d66..275f60d65b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -37,6 +37,8 @@ for :integer [ 0:1 >> 0 (neg 1:1) >> neg 1 ] + + section :version [] ] @@ -72,6 +74,8 @@ for :floating [ 0:1 >> 0.0 (neg 1:1) >> neg 1.0 ] + + section :version [] ] @@ -107,6 +111,8 @@ for :logical [ section :rational [ ] + + section :version [] ] @@ -183,6 +189,8 @@ for :rational [ ] + section :version [] + ] for :char [ @@ -215,6 +223,8 @@ for :char [ ] + section :version [] + ] for :quantity [ @@ -252,6 +262,8 @@ for :quantity [ (neg 1:1) >> neg 1` ] + section :version [] + ] @@ -277,6 +289,8 @@ for :date [ ] + section :version [] + ] for :binary [ @@ -311,6 +325,8 @@ for :binary [ ] + section :version [] + ] for :block [ @@ -342,6 +358,8 @@ for :block [ (neg 1:5) >> @[neg 1 5] ] + section :version [] + ] for :version [ @@ -370,4 +388,6 @@ for :version [ ] + section :version [] + ] \ No newline at end of file From 13688b67e7a2b512bec5d88f1e742c29496431a7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:02:00 -0300 Subject: [PATCH 041/114] [Types\to] colapse empty tests --- tests/unitt/lib/types/to.test.art | 171 ++++++------------------------ 1 file changed, 35 insertions(+), 136 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 275f60d65b..7a1c0d6ebd 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -43,9 +43,7 @@ for :integer [ for :floating [ - section :null [ - ; null >> 0.0 - ] + section :null [] section :logical [ true >> 1.0 @@ -65,9 +63,7 @@ for :floating [ (neg 1.0) >> (neg 1.0) ] - section :complex [ - - ] + section :complex [] section :rational [ 1:1 >> 1.0 @@ -104,14 +100,8 @@ for :logical [ (neg 1.0) >> true ] - section :complex [ - - ] - - section :rational [ - - ] - + section :complex [] + section :rational [] section :version [] ] @@ -159,15 +149,8 @@ for :string [ for :rational [ - section :null [ - ; null >> 0:1 - ] - - section :logical [ - ; true >> 1:1 - ; false >> 0:1 - ; maybe >> null - ] + section :null [] + section :logical [] section :integer [ 1 >> 1:1 @@ -181,29 +164,16 @@ for :rational [ (neg 1.0) >> neg 1:1 ] - section :complex [ - - ] - - section :rational [ - - ] - + section :complex [] + section :rational [] section :version [] ] for :char [ - section :null [ - ; null >> '' ; Should be '\0' - ] - - section :logical [ - ; true >> 'Y' - ; false >> 'N' - ; maybe >> '?' - ] + section :null [] + section :logical [] section :integer [ 75 >> 'K' @@ -215,29 +185,16 @@ for :char [ 50.0 >> '2' ] - section :complex [ - - ] - - section :rational [ - - ] - + section :complex [] + section :rational [] section :version [] ] for :quantity [ - section :null [ - ; null >> 0` - ] - - section :logical [ - ; true >> 1` - ; false >> 0` - ; maybe >> null - ] + section :null [] + section :logical [] section :integer [ 0 >> 0` @@ -252,9 +209,7 @@ for :quantity [ 1.5 >> 1.5` ] - section :complex [ - - ] + section :complex [] section :rational [ 1:1 >> 1` @@ -269,39 +224,24 @@ for :quantity [ for :date [ - section :null [ - - ] - - section :logical [ - - ] + section :null [] + section :logical [] section :integer [ 0 >> to :date "1969-12-31T21:00:00-03:00" ] - section :complex [ - - ] - - section :rational [ - - ] - + section :floating [] + section :complex [] + section :rational [] section :version [] ] for :binary [ - section :null [ - - ] - - section :logical [ - - ] + section :null [] + section :logical [] section :integer [ ; There is no such way of properly testing it right now? @@ -310,42 +250,19 @@ for :binary [ (neg 1) >> to :binary neg 1 ; Should be 0b1111 ] - section :floating [ - ; There is no such way of properly testing it right now? - ; 0.0 >> to :binary 0 ; Should be 0b0000 - ; 1.0 >> to :binary 1 ; Should be 0b0001 - ; (neg 1.0) >> to :binary neg 1 ; Should be 0b1111 - ] - - section :complex [ - - ] - - section :rational [ - - ] - + section :floating [] + section :complex [] + section :rational [] section :version [] ] for :block [ - section :null [ - - ] - - section :logical [ - - ] - - section :integer [ - - ] - - section :floating [ - - ] + section :null [] + section :logical [] + section :integer [] + section :floating [] section :complex [ (to :complex [1 5]) >> [1.0 5.0] @@ -364,30 +281,12 @@ for :block [ for :version [ - section :null [ - - ] - - section :logical [ - - ] - - section :integer [ - - ] - - section :floating [ - - ] - - section :complex [ - - ] - - section :rational [ - - ] - + section :null [] + section :logical [] + section :integer [] + section :floating [] + section :complex [] + section :rational [] section :version [] ] \ No newline at end of file From c6ef6d3a5c1f1931f3fcb19abeecd5cd9371063a Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:03:08 -0300 Subject: [PATCH 042/114] [Types\to] add empty tests --- tests/unitt/lib/types/to.test.art | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 7a1c0d6ebd..6fc557ec10 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -39,6 +39,7 @@ for :integer [ ] section :version [] + section :type [] ] @@ -72,6 +73,7 @@ for :floating [ ] section :version [] + section :type [] ] @@ -103,6 +105,7 @@ for :logical [ section :complex [] section :rational [] section :version [] + section :type [] ] @@ -145,6 +148,8 @@ for :string [ 1.2.3-pre >> "1.2.3-pre" ] + section :type [] + ] for :rational [ @@ -167,6 +172,7 @@ for :rational [ section :complex [] section :rational [] section :version [] + section :type [] ] @@ -188,6 +194,7 @@ for :char [ section :complex [] section :rational [] section :version [] + section :type [] ] @@ -218,6 +225,7 @@ for :quantity [ ] section :version [] + section :type [] ] @@ -235,6 +243,7 @@ for :date [ section :complex [] section :rational [] section :version [] + section :type [] ] @@ -254,6 +263,7 @@ for :binary [ section :complex [] section :rational [] section :version [] + section :type [] ] @@ -276,6 +286,7 @@ for :block [ ] section :version [] + section :type [] ] @@ -288,5 +299,6 @@ for :version [ section :complex [] section :rational [] section :version [] + section :type [] ] \ No newline at end of file From 9d7eb8c3b55d6355bfeb3c8fc71415a840b2d33a Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:04:44 -0300 Subject: [PATCH 043/114] [Types\to] test :type => :string --- tests/unitt/lib/types/to.test.art | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 6fc557ec10..ac7655447c 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -148,7 +148,16 @@ for :string [ 1.2.3-pre >> "1.2.3-pre" ] - section :type [] + section :type [ + :integer >> "integer" + :floating >> "floating" + :logical >> "logical" + :string >> "string" + :complex >> "complex" + :rational >> "rational" + :version >> "version" + :type >> "type" + ] ] From 58d46e43e04c7e7cf458f5b452d1215bc5aa65d7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:06:36 -0300 Subject: [PATCH 044/114] [Types\to] add empty tests --- tests/unitt/lib/types/to.test.art | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index ac7655447c..545bedc1b3 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -40,6 +40,7 @@ for :integer [ section :version [] section :type [] + section :char [] ] @@ -74,6 +75,7 @@ for :floating [ section :version [] section :type [] + section :char [] ] @@ -106,6 +108,7 @@ for :logical [ section :rational [] section :version [] section :type [] + section :char [] ] @@ -159,6 +162,8 @@ for :string [ :type >> "type" ] + section :char [] + ] for :rational [ @@ -182,6 +187,7 @@ for :rational [ section :rational [] section :version [] section :type [] + section :char [] ] @@ -204,6 +210,7 @@ for :char [ section :rational [] section :version [] section :type [] + section :char [] ] @@ -235,6 +242,7 @@ for :quantity [ section :version [] section :type [] + section :char [] ] @@ -253,6 +261,7 @@ for :date [ section :rational [] section :version [] section :type [] + section :char [] ] @@ -273,6 +282,7 @@ for :binary [ section :rational [] section :version [] section :type [] + section :char [] ] @@ -296,6 +306,7 @@ for :block [ section :version [] section :type [] + section :char [] ] @@ -309,5 +320,6 @@ for :version [ section :rational [] section :version [] section :type [] + section :char [] ] \ No newline at end of file From a39aa162d094f60dd93b937590f067fde805c204 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:08:29 -0300 Subject: [PATCH 045/114] [Types\to] test :char => :string --- tests/unitt/lib/types/to.test.art | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 545bedc1b3..dbc2acd20d 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -162,7 +162,10 @@ for :string [ :type >> "type" ] - section :char [] + section :char [ + 'K' >> "K" + 'Ϩ' >> "Ϩ" ; supports UNICODE + ] ] From f8670665162c1a7d358fb23a76c4b5aab0c877cd Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:08:45 -0300 Subject: [PATCH 046/114] [Types\to] test :char => :integer --- tests/unitt/lib/types/to.test.art | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index dbc2acd20d..af5183d362 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -40,7 +40,12 @@ for :integer [ section :version [] section :type [] - section :char [] + + section :char [ + 'K' >> 75 + 'Ϩ' >> 1000 ; supports UNICODE + ] + ] From 74de29c5b3af8aceacc9594d9be172bdd9dd77ea Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:12:06 -0300 Subject: [PATCH 047/114] [Types\to] test :char => :binary --- tests/unitt/lib/types/to.test.art | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index af5183d362..7307b65483 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -290,7 +290,10 @@ for :binary [ section :rational [] section :version [] section :type [] - section :char [] + + section :char [ + 'K' >> to :binary 75 + ] ] From 8d95c8e48760c971acff9b8c87d6f3c51b7d3f1f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:13:48 -0300 Subject: [PATCH 048/114] [Types\to] add empty tests --- tests/unitt/lib/types/to.test.art | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 7307b65483..cb93dc77a1 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -46,6 +46,8 @@ for :integer [ 'Ϩ' >> 1000 ; supports UNICODE ] + section :string [] + ] @@ -81,6 +83,7 @@ for :floating [ section :version [] section :type [] section :char [] + section :string [] ] @@ -114,6 +117,7 @@ for :logical [ section :version [] section :type [] section :char [] + section :string [] ] @@ -172,6 +176,8 @@ for :string [ 'Ϩ' >> "Ϩ" ; supports UNICODE ] + section :string [] + ] for :rational [ @@ -196,6 +202,7 @@ for :rational [ section :version [] section :type [] section :char [] + section :string [] ] @@ -219,6 +226,7 @@ for :char [ section :version [] section :type [] section :char [] + section :string [] ] @@ -251,6 +259,7 @@ for :quantity [ section :version [] section :type [] section :char [] + section :string [] ] @@ -270,6 +279,7 @@ for :date [ section :version [] section :type [] section :char [] + section :string [] ] @@ -295,6 +305,8 @@ for :binary [ 'K' >> to :binary 75 ] + section :string [] + ] for :block [ @@ -318,6 +330,7 @@ for :block [ section :version [] section :type [] section :char [] + section :string [] ] @@ -332,5 +345,6 @@ for :version [ section :version [] section :type [] section :char [] + section :string [] ] \ No newline at end of file From e91f95e51e6dcd8468734549c7f86f0f5676c63e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:14:31 -0300 Subject: [PATCH 049/114] [Types\to] test :string => :logical --- tests/unitt/lib/types/to.test.art | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index cb93dc77a1..3f43fa782b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -117,7 +117,12 @@ for :logical [ section :version [] section :type [] section :char [] - section :string [] + + section :string [ + "true" >> true + "false" >> false + "maybe" >> maybe + ] ] From 1fff8f85a8b47cc4414d0d9e63be915f37e020aa Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:15:10 -0300 Subject: [PATCH 050/114] [Types\to] test :string => :integer --- tests/unitt/lib/types/to.test.art | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 3f43fa782b..39dc198be1 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -46,7 +46,11 @@ for :integer [ 'Ϩ' >> 1000 ; supports UNICODE ] - section :string [] + section :string [ + "1" >> 1 + "0" >> 0 + "-1" >> neg 1 + ] ] From 92e3f52c57460a6225e63d3ab87ce03dc2413de5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:15:43 -0300 Subject: [PATCH 051/114] [Types\to] test :string => :floating --- tests/unitt/lib/types/to.test.art | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 39dc198be1..7cfeb6b9f5 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -87,7 +87,12 @@ for :floating [ section :version [] section :type [] section :char [] - section :string [] + + section :string [ + "1.0" >> 1.0 + "0.0" >> 0.0 + "-1.0" >> neg 1.0 + ] ] From fa52374be135d1a0e4951d59eee44b7937f095c1 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:16:14 -0300 Subject: [PATCH 052/114] [Types\to] test :string => :version --- tests/unitt/lib/types/to.test.art | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 7cfeb6b9f5..21ae2e4bef 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -359,6 +359,10 @@ for :version [ section :version [] section :type [] section :char [] - section :string [] + + section :string [ + "1.2.3" >> 1.2.3 + "1.2.3-pre" >> 1.2.3-pre + ] ] \ No newline at end of file From b891d1b45d4fe40ecc9a082647eecebf92d88d7e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:18:08 -0300 Subject: [PATCH 053/114] [Types\to] create :type test suite --- tests/unitt/lib/types/to.test.art | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 21ae2e4bef..e485f4bbee 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -365,4 +365,29 @@ for :version [ "1.2.3-pre" >> 1.2.3-pre ] +] + +for :type [ + + section :null [] + section :logical [] + section :integer [] + section :floating [] + section :complex [] + section :rational [] + section :version [] + section :type [] + section :char [] + + section :string [ + "integer" >> :integer + "floating" >> :floating + "logical" >> :logical + "string" >> :string + "complex" >> :complex + "rational" >> :rational + "version" >> :version + "type" >> :type + ] + ] \ No newline at end of file From d23927bb52f6f1c7f7a3614efe16ba07f6773dcc Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:19:22 -0300 Subject: [PATCH 054/114] [Types\to] test :string => :char --- tests/unitt/lib/types/to.test.art | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index e485f4bbee..6216734bda 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -240,7 +240,11 @@ for :char [ section :version [] section :type [] section :char [] - section :string [] + + section :string [ + "K" >> 'K' + "Ϩ" >> 'Ϩ' + ] ] From 96860293c7b97d9da1b2bdcbe482495be41eb482 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:21:56 -0300 Subject: [PATCH 055/114] [Types\to] organize suite alphabetically --- tests/unitt/lib/types/to.test.art | 380 +++++++++++++++--------------- 1 file changed, 189 insertions(+), 191 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 6216734bda..4465499d12 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,59 +1,103 @@ import {unitt}! import ./{to.helper.art}! -for :integer [ - section :null [ - null >> 0 - ] +for :binary [ - section :logical [ - true >> 1 - false >> 0 - maybe >> null - ] + section :null [] + section :logical [] section :integer [ - 1 >> 1 - 0 >> 0 - (neg 1) >> (neg 1) + ; There is no such way of properly testing it right now? + 0 >> to :binary 0 ; Should be 0b0000 + 1 >> to :binary 1 ; Should be 0b0001 + (neg 1) >> to :binary neg 1 ; Should be 0b1111 ] - section :floating [ - 1.0 >> 1 - 0.0 >> 0 - (neg 1.0) >> (neg 1) - - 1.1 >> 1 - 1.5 >> 1 - 1.9 >> 1 + section :floating [] + section :complex [] + section :rational [] + section :version [] + section :type [] + + section :char [ + 'K' >> to :binary 75 ] - section :complex [ + section :string [] - ] +] + +for :block [ + + section :null [] + section :logical [] + section :integer [] + section :floating [] + section :complex [ + (to :complex [1 5]) >> [1.0 5.0] + ] + section :rational [ - 1:1 >> 1 - 0:1 >> 0 - (neg 1:1) >> neg 1 + 1:2 >> [1 2] + 0:5 >> [0 1] + 2:10 >> [1 5] + (neg 1:5) >> @[neg 1 5] ] section :version [] section :type [] + section :char [] + section :string [] - section :char [ - 'K' >> 75 - 'Ϩ' >> 1000 ; supports UNICODE +] + +for :char [ + + section :null [] + section :logical [] + + section :integer [ + 75 >> 'K' + 1000 >> 'Ϩ' ; supports UNICODE + ] + + section :floating [ + 75.0 >> 'K' + 50.0 >> '2' ] + section :complex [] + section :rational [] + section :version [] + section :type [] + section :char [] + section :string [ - "1" >> 1 - "0" >> 0 - "-1" >> neg 1 + "K" >> 'K' + "Ϩ" >> 'Ϩ' ] ] +for :date [ + + section :null [] + section :logical [] + + section :integer [ + 0 >> to :date "1969-12-31T21:00:00-03:00" + ] + + section :floating [] + section :complex [] + section :rational [] + section :version [] + section :type [] + section :char [] + section :string [] + +] for :floating [ section :null [] @@ -95,144 +139,83 @@ for :floating [ ] ] - -for :logical [ - section :null [ - null >> false - ] - - section :logical [ - true >> true - false >> false - maybe >> maybe - ] - - section :integer [ - 0 >> false - 1 >> true - (neg 1) >> true - (random 1 1000) >> true - (random neg 1000 neg 1) >> true - ] - - section :floating [ - 0.0 >> false - 1.0 >> true - (neg 1.0) >> true - ] - - section :complex [] - section :rational [] - section :version [] - section :type [] - section :char [] - - section :string [ - "true" >> true - "false" >> false - "maybe" >> maybe - ] -] - - -for :string [ +for :integer [ section :null [ - null >> "null" + null >> 0 ] section :logical [ - true >> "true" - false >> "false" - maybe >> "maybe" + true >> 1 + false >> 0 + maybe >> null ] section :integer [ - 1 >> "1" - 0 >> "0" - (neg 1) >> "-1" + 1 >> 1 + 0 >> 0 + (neg 1) >> (neg 1) ] section :floating [ - 1.0 >> "1.0" - 0.0 >> "0.0" - (neg 1.0) >> "-1.0" + 1.0 >> 1 + 0.0 >> 0 + (neg 1.0) >> (neg 1) + + 1.1 >> 1 + 1.5 >> 1 + 1.9 >> 1 ] section :complex [ - (to :complex [1 5]) >> "1.0+5.0i" - ] - section :rational [ - 1:1 >> "1/1" - 0:2 >> "0/1" - 2:10 >> "1/5" - (neg 2:10) >> "-1/5" ] - section :version [ - 1.2.3 >> "1.2.3" - 1.2.3-pre >> "1.2.3-pre" + section :rational [ + 1:1 >> 1 + 0:1 >> 0 + (neg 1:1) >> neg 1 ] - section :type [ - :integer >> "integer" - :floating >> "floating" - :logical >> "logical" - :string >> "string" - :complex >> "complex" - :rational >> "rational" - :version >> "version" - :type >> "type" - ] + section :version [] + section :type [] section :char [ - 'K' >> "K" - 'Ϩ' >> "Ϩ" ; supports UNICODE + 'K' >> 75 + 'Ϩ' >> 1000 ; supports UNICODE ] - section :string [] + section :string [ + "1" >> 1 + "0" >> 0 + "-1" >> neg 1 + ] ] -for :rational [ - - section :null [] - section :logical [] - section :integer [ - 1 >> 1:1 - 0 >> 0:1 - (neg 1) >> neg 1:1 - ] - - section :floating [ - 1.0 >> 1:1 - 0.0 >> 0:1 - (neg 1.0) >> neg 1:1 +for :logical [ + section :null [ + null >> false ] - section :complex [] - section :rational [] - section :version [] - section :type [] - section :char [] - section :string [] - -] - -for :char [ - - section :null [] - section :logical [] + section :logical [ + true >> true + false >> false + maybe >> maybe + ] section :integer [ - 75 >> 'K' - 1000 >> 'Ϩ' ; supports UNICODE + 0 >> false + 1 >> true + (neg 1) >> true + (random 1 1000) >> true + (random neg 1000 neg 1) >> true ] - + section :floating [ - 75.0 >> 'K' - 50.0 >> '2' + 0.0 >> false + 1.0 >> true + (neg 1.0) >> true ] section :complex [] @@ -240,12 +223,12 @@ for :char [ section :version [] section :type [] section :char [] - + section :string [ - "K" >> 'K' - "Ϩ" >> 'Ϩ' + "true" >> true + "false" >> false + "maybe" >> maybe ] - ] for :quantity [ @@ -281,17 +264,23 @@ for :quantity [ ] - -for :date [ +for :rational [ section :null [] section :logical [] section :integer [ - 0 >> to :date "1969-12-31T21:00:00-03:00" + 1 >> 1:1 + 0 >> 0:1 + (neg 1) >> neg 1:1 + ] + + section :floating [ + 1.0 >> 1:1 + 0.0 >> 0:1 + (neg 1.0) >> neg 1:1 ] - section :floating [] section :complex [] section :rational [] section :version [] @@ -301,58 +290,67 @@ for :date [ ] -for :binary [ - section :null [] - section :logical [] +for :string [ + section :null [ + null >> "null" + ] + + section :logical [ + true >> "true" + false >> "false" + maybe >> "maybe" + ] section :integer [ - ; There is no such way of properly testing it right now? - 0 >> to :binary 0 ; Should be 0b0000 - 1 >> to :binary 1 ; Should be 0b0001 - (neg 1) >> to :binary neg 1 ; Should be 0b1111 + 1 >> "1" + 0 >> "0" + (neg 1) >> "-1" ] - section :floating [] - section :complex [] - section :rational [] - section :version [] - section :type [] - - section :char [ - 'K' >> to :binary 75 + section :floating [ + 1.0 >> "1.0" + 0.0 >> "0.0" + (neg 1.0) >> "-1.0" ] - section :string [] - -] + section :complex [ + (to :complex [1 5]) >> "1.0+5.0i" + ] -for :block [ + section :rational [ + 1:1 >> "1/1" + 0:2 >> "0/1" + 2:10 >> "1/5" + (neg 2:10) >> "-1/5" + ] - section :null [] - section :logical [] - section :integer [] - section :floating [] + section :version [ + 1.2.3 >> "1.2.3" + 1.2.3-pre >> "1.2.3-pre" + ] - section :complex [ - (to :complex [1 5]) >> [1.0 5.0] + section :type [ + :integer >> "integer" + :floating >> "floating" + :logical >> "logical" + :string >> "string" + :complex >> "complex" + :rational >> "rational" + :version >> "version" + :type >> "type" ] - - section :rational [ - 1:2 >> [1 2] - 0:5 >> [0 1] - 2:10 >> [1 5] - (neg 1:5) >> @[neg 1 5] + + section :char [ + 'K' >> "K" + 'Ϩ' >> "Ϩ" ; supports UNICODE ] - section :version [] - section :type [] - section :char [] section :string [] ] -for :version [ +for :type [ section :null [] section :logical [] @@ -365,13 +363,19 @@ for :version [ section :char [] section :string [ - "1.2.3" >> 1.2.3 - "1.2.3-pre" >> 1.2.3-pre + "integer" >> :integer + "floating" >> :floating + "logical" >> :logical + "string" >> :string + "complex" >> :complex + "rational" >> :rational + "version" >> :version + "type" >> :type ] ] -for :type [ +for :version [ section :null [] section :logical [] @@ -384,14 +388,8 @@ for :type [ section :char [] section :string [ - "integer" >> :integer - "floating" >> :floating - "logical" >> :logical - "string" >> :string - "complex" >> :complex - "rational" >> :rational - "version" >> :version - "type" >> :type + "1.2.3" >> 1.2.3 + "1.2.3-pre" >> 1.2.3-pre ] ] \ No newline at end of file From 162ddbdc0c4541df5b57d7ed3c94e0ccad090dbf Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:26:16 -0300 Subject: [PATCH 056/114] [Types\to] organize :version's tests alphabetically --- tests/unitt/lib/types/to.test.art | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 4465499d12..17ccff9219 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -377,19 +377,20 @@ for :type [ for :version [ - section :null [] - section :logical [] - section :integer [] - section :floating [] + section :char [] section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [ "1.2.3" >> 1.2.3 "1.2.3-pre" >> 1.2.3-pre ] + section :type [] + section :version [] + ] \ No newline at end of file From d5f427e2dbc4ae04a74592cc7657cc3f2ca2c715 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:26:29 -0300 Subject: [PATCH 057/114] [Types\to] organize :type's tests alphabetically --- tests/unitt/lib/types/to.test.art | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 17ccff9219..0c234dd48a 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -352,15 +352,13 @@ for :string [ for :type [ - section :null [] - section :logical [] - section :integer [] - section :floating [] + section :char [] section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [ "integer" >> :integer @@ -373,6 +371,9 @@ for :type [ "type" >> :type ] + section :type [] + section :version [] + ] for :version [ From 62a3bc030bf4383f4bd67b04f0747bcb70179f5f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:26:54 -0300 Subject: [PATCH 058/114] [Types\to] organize :string's tests alphabetically --- tests/unitt/lib/types/to.test.art | 45 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 0c234dd48a..9e8b6cbc95 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -292,14 +292,20 @@ for :rational [ for :string [ - section :null [ - null >> "null" + + section :char [ + 'K' >> "K" + 'Ϩ' >> "Ϩ" ; supports UNICODE ] - section :logical [ - true >> "true" - false >> "false" - maybe >> "maybe" + section :complex [ + (to :complex [1 5]) >> "1.0+5.0i" + ] + + section :floating [ + 1.0 >> "1.0" + 0.0 >> "0.0" + (neg 1.0) >> "-1.0" ] section :integer [ @@ -307,15 +313,15 @@ for :string [ 0 >> "0" (neg 1) >> "-1" ] - - section :floating [ - 1.0 >> "1.0" - 0.0 >> "0.0" - (neg 1.0) >> "-1.0" + + section :logical [ + true >> "true" + false >> "false" + maybe >> "maybe" ] - section :complex [ - (to :complex [1 5]) >> "1.0+5.0i" + section :null [ + null >> "null" ] section :rational [ @@ -325,10 +331,7 @@ for :string [ (neg 2:10) >> "-1/5" ] - section :version [ - 1.2.3 >> "1.2.3" - 1.2.3-pre >> "1.2.3-pre" - ] + section :string [] section :type [ :integer >> "integer" @@ -341,13 +344,11 @@ for :string [ :type >> "type" ] - section :char [ - 'K' >> "K" - 'Ϩ' >> "Ϩ" ; supports UNICODE + section :version [ + 1.2.3 >> "1.2.3" + 1.2.3-pre >> "1.2.3-pre" ] - section :string [] - ] for :type [ From d14699298ddb16887baf5c69d070ad7fecec10de Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:27:11 -0300 Subject: [PATCH 059/114] [Types\to] organize :rational's tests alphabetically --- tests/unitt/lib/types/to.test.art | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 9e8b6cbc95..2c230bceb3 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -266,27 +266,27 @@ for :quantity [ for :rational [ - section :null [] - section :logical [] + section :char [] + section :complex [] - section :integer [ - 1 >> 1:1 - 0 >> 0:1 - (neg 1) >> neg 1:1 - ] - section :floating [ 1.0 >> 1:1 0.0 >> 0:1 (neg 1.0) >> neg 1:1 ] - section :complex [] + section :integer [ + 1 >> 1:1 + 0 >> 0:1 + (neg 1) >> neg 1:1 + ] + + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [] + section :type [] + section :version [] ] From 240507fa05ec186af595db8ec0b0e29af58d3159 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:28:17 -0300 Subject: [PATCH 060/114] [Types\to] organize :quantity's tests alphabetically --- tests/unitt/lib/types/to.test.art | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 2c230bceb3..e3fe0fad33 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -233,15 +233,9 @@ for :logical [ for :quantity [ - section :null [] - section :logical [] + section :char [] + section :complex [] - section :integer [ - 0 >> 0` - 1 >> 1` - (neg 1) >> neg 1` - ] - section :floating [ 0.0 >> 0` 1.0 >> 1` @@ -249,7 +243,14 @@ for :quantity [ 1.5 >> 1.5` ] - section :complex [] + section :integer [ + 0 >> 0` + 1 >> 1` + (neg 1) >> neg 1` + ] + + section :logical [] + section :null [] section :rational [ 1:1 >> 1` @@ -257,10 +258,9 @@ for :quantity [ (neg 1:1) >> neg 1` ] - section :version [] - section :type [] - section :char [] section :string [] + section :type [] + section :version [] ] From 7cca4bc0032544358139931d8160082e0808d8f9 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:29:40 -0300 Subject: [PATCH 061/114] [Types\to] organize :logical's tests alphabetically --- tests/unitt/lib/types/to.test.art | 35 +++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index e3fe0fad33..034be1bf18 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -194,14 +194,14 @@ for :integer [ for :logical [ - section :null [ - null >> false - ] - section :logical [ - true >> true - false >> false - maybe >> maybe + section :char [] + section :complex [] + + section :floating [ + 0.0 >> false + 1.0 >> true + (neg 1.0) >> true ] section :integer [ @@ -211,24 +211,27 @@ for :logical [ (random 1 1000) >> true (random neg 1000 neg 1) >> true ] - - section :floating [ - 0.0 >> false - 1.0 >> true - (neg 1.0) >> true + + section :logical [ + true >> true + false >> false + maybe >> maybe + ] + + section :null [ + null >> false ] - section :complex [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [ "true" >> true "false" >> false "maybe" >> maybe ] + + section :type [] + section :version [] ] for :quantity [ From f5483bc46c2b408f0861cfb0a7f26e2d883ece31 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:31:06 -0300 Subject: [PATCH 062/114] [Types\to] organize :integer's tests alphabetically --- tests/unitt/lib/types/to.test.art | 43 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 034be1bf18..25b8f3b015 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -140,22 +140,14 @@ for :floating [ ] for :integer [ - section :null [ - null >> 0 - ] - section :logical [ - true >> 1 - false >> 0 - maybe >> null + section :char [ + 'K' >> 75 + 'Ϩ' >> 1000 ; supports UNICODE ] - section :integer [ - 1 >> 1 - 0 >> 0 - (neg 1) >> (neg 1) - ] - + section :complex [] + section :floating [ 1.0 >> 1 0.0 >> 0 @@ -166,8 +158,20 @@ for :integer [ 1.9 >> 1 ] - section :complex [ + section :integer [ + 1 >> 1 + 0 >> 0 + (neg 1) >> (neg 1) + ] + section :logical [ + true >> 1 + false >> 0 + maybe >> null + ] + + section :null [ + null >> 0 ] section :rational [ @@ -176,20 +180,15 @@ for :integer [ (neg 1:1) >> neg 1 ] - section :version [] - section :type [] - - section :char [ - 'K' >> 75 - 'Ϩ' >> 1000 ; supports UNICODE - ] - section :string [ "1" >> 1 "0" >> 0 "-1" >> neg 1 ] + section :type [] + section :version [] + ] From f24fef9838b0961cf42f5ea0b0786c01bb3d9956 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:32:26 -0300 Subject: [PATCH 063/114] [Types\to] organize :floating's tests alphabetically --- tests/unitt/lib/types/to.test.art | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 25b8f3b015..2ea5d3582c 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -100,12 +100,14 @@ for :date [ ] for :floating [ - section :null [] - section :logical [ - true >> 1.0 - false >> 0.0 - maybe >> null + section :char [] + section :complex [] + + section :floating [ + 1.0 >> 1.0 + 0.0 >> 0.0 + (neg 1.0) >> (neg 1.0) ] section :integer [ @@ -113,14 +115,14 @@ for :floating [ 0 >> 0.0 (neg 1) >> (neg 1.0) ] - - section :floating [ - 1.0 >> 1.0 - 0.0 >> 0.0 - (neg 1.0) >> (neg 1.0) + + section :logical [ + true >> 1.0 + false >> 0.0 + maybe >> null ] - section :complex [] + section :null [] section :rational [ 1:1 >> 1.0 @@ -128,15 +130,14 @@ for :floating [ (neg 1:1) >> neg 1.0 ] - section :version [] - section :type [] - section :char [] - section :string [ "1.0" >> 1.0 "0.0" >> 0.0 "-1.0" >> neg 1.0 ] + + section :type [] + section :version [] ] for :integer [ From 4a8d48ebf282777f8ac8fa92429eecedabff07e8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:34:25 -0300 Subject: [PATCH 064/114] [Types\to] organize :date's tests alphabetically --- tests/unitt/lib/types/to.test.art | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 2ea5d3582c..c7f9899184 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -82,20 +82,20 @@ for :char [ for :date [ - section :null [] - section :logical [] + section :char [] + section :complex [] + section :floating [] section :integer [ 0 >> to :date "1969-12-31T21:00:00-03:00" ] - section :floating [] - section :complex [] + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [] + section :type [] + section :version [] ] From e599ce34a3af56e766fccf94c0a0af0248f750a4 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:36:17 -0300 Subject: [PATCH 065/114] [Types\to] organize :char's tests alphabetically --- tests/unitt/lib/types/to.test.art | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index c7f9899184..bd6e7cdd96 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -54,30 +54,31 @@ for :block [ for :char [ - section :null [] - section :logical [] + section :char [] + section :complex [] - section :integer [ - 75 >> 'K' - 1000 >> 'Ϩ' ; supports UNICODE - ] - section :floating [ 75.0 >> 'K' 50.0 >> '2' ] - section :complex [] + section :integer [ + 75 >> 'K' + 1000 >> 'Ϩ' ; supports UNICODE + ] + + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - section :char [] section :string [ "K" >> 'K' "Ϩ" >> 'Ϩ' ] + section :type [] + section :version [] + ] for :date [ From 63056f93dcfb09a55db19196501b90ee8c0ac4e8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:37:06 -0300 Subject: [PATCH 066/114] [Types\to] organize :block's tests alphabetically --- tests/unitt/lib/types/to.test.art | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index bd6e7cdd96..747d4506b0 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -28,15 +28,17 @@ for :binary [ ] for :block [ - - section :null [] - section :logical [] - section :integer [] - section :floating [] - + + section :char [] + section :complex [ (to :complex [1 5]) >> [1.0 5.0] ] + + section :floating [] + section :integer [] + section :logical [] + section :null [] section :rational [ 1:2 >> [1 2] @@ -45,10 +47,9 @@ for :block [ (neg 1:5) >> @[neg 1 5] ] - section :version [] - section :type [] - section :char [] section :string [] + section :type [] + section :version [] ] From 8068ad6f9b3503711e42ec9a8b4229ab5121a3b0 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:37:59 -0300 Subject: [PATCH 067/114] [Types\to] organize :binary's tests alphabetically --- tests/unitt/lib/types/to.test.art | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 747d4506b0..ab34a57b2f 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -3,8 +3,12 @@ import ./{to.helper.art}! for :binary [ - section :null [] - section :logical [] + section :char [ + 'K' >> to :binary 75 + ] + + section :complex [] + section :floating [] section :integer [ ; There is no such way of properly testing it right now? @@ -13,17 +17,12 @@ for :binary [ (neg 1) >> to :binary neg 1 ; Should be 0b1111 ] - section :floating [] - section :complex [] + section :logical [] + section :null [] section :rational [] - section :version [] - section :type [] - - section :char [ - 'K' >> to :binary 75 - ] - section :string [] + section :type [] + section :version [] ] From 1f015615f91075b4eeb1b782f45de8483fbc37af Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:40:04 -0300 Subject: [PATCH 068/114] [Types\to] create :word test suite --- tests/unitt/lib/types/to.test.art | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index ab34a57b2f..99e1beb1f9 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -399,4 +399,19 @@ for :version [ section :type [] section :version [] +] + +for :word [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + section :string [] + section :type [] + section :version [] + ] \ No newline at end of file From df1744869162a9c284edf288da2ca1c6b53133c5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:41:02 -0300 Subject: [PATCH 069/114] [Types\to] test :string => :word --- tests/unitt/lib/types/to.test.art | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 99e1beb1f9..647fc778f6 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -410,7 +410,11 @@ for :word [ section :logical [] section :null [] section :rational [] - section :string [] + + section :string [ + "example" >> first [example] + ] + section :type [] section :version [] From ad3361819df6c3110b394c588320fc3509b50b6e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:41:40 -0300 Subject: [PATCH 070/114] [Types\to] create :literal test suite --- tests/unitt/lib/types/to.test.art | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 647fc778f6..7c8aab0dd6 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -193,6 +193,21 @@ for :integer [ ] +for :literal [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + section :string [] + section :type [] + section :version [] + +] + for :logical [ From 3b592d7e41e7303fdd0d7c85f49c839c652bd30c Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:47:10 -0300 Subject: [PATCH 071/114] [Types\to] test :string => :word --- tests/unitt/lib/types/to.test.art | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 7c8aab0dd6..b94f68050b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -202,7 +202,11 @@ for :literal [ section :logical [] section :null [] section :rational [] - section :string [] + + section :string [ + "example" >> 'example + ] + section :type [] section :version [] @@ -426,8 +430,10 @@ for :word [ section :null [] section :rational [] - section :string [ - "example" >> first [example] + test ":string => :word" [ + assert -> equal? + first [example] + to :word "example" ] section :type [] From a7f29076f401b4f3957a99fb286573b33bee8273 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:49:37 -0300 Subject: [PATCH 072/114] [Types\to] test :string => :label --- tests/unitt/lib/types/to.test.art | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b94f68050b..bc4167dddb 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -193,6 +193,27 @@ for :integer [ ] +for :label [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + test ":string => :label" [ + assert -> equal? + first [example:] + to :label "example" + ] + + section :type [] + section :version [] + +] + for :literal [ section :char [] From 5b2d6ff8090eafe81de2726c3aeebde9a1b4e7d4 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:52:48 -0300 Subject: [PATCH 073/114] [Types\to] test :string => :attribute/:attributeLabel --- tests/unitt/lib/types/to.test.art | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index bc4167dddb..77f3b39856 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1,6 +1,48 @@ import {unitt}! import ./{to.helper.art}! +for :attribute [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + test ":string => :attribute" [ + assert -> equal? + first [.example] + to :attribute "example" + ] + + section :type [] + section :version [] + +] + +for :attributeLabel [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + test ":string => :attribute" [ + assert -> equal? + first [.example:] + to :attributeLabel "example" + ] + + section :type [] + section :version [] + +] + for :binary [ section :char [ From f98be554e53b03413408badb643ae8c4069db822 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:09:12 -0300 Subject: [PATCH 074/114] [Types\to] test :string => :symbol --- tests/unitt/lib/types/to.test.art | 123 ++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 77f3b39856..fccd784469 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -437,6 +437,129 @@ for :string [ ] +for :symbol [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + test ":string => :symbol" [ + ; Unable to parse here? + ; + ; assert -> equal? first [=>] to :symbol "=>" + ; assert -> equal? first [->] to :symbol "->" + ; assert -> equal? first [!] to :symbol "!" + ; assert -> equal? first [!!] to :symbol "!!" + ; assert -> equal? first [\\] to :symbol "\\" + ; assert -> equal? first [\\\\] to :symbol "\\\\" + ; assert -> equal? first [|] to :symbol "|" + ; assert -> equal? first [|-] to :symbol "|-" + ; assert -> equal? first [|=] to :symbol "|=" + ; assert -> equal? first [:] to :symbol ":" + ; assert -> equal? first [::] to :symbol "::" + ; assert -> equal? first [||] to :symbol "||" + + ; Error: Found extraneous block symbol: closing square bracket (`]`) ??? + ; + ; assert -> equal? first [<|] to :symbol "<|" + ; assert -> equal? first [|>] to :symbol "|>" + ; assert -> equal? first [<|>] to :symbol "<|>" + + assert -> equal? first [<=] to :symbol "<=" + assert -> equal? first [<=>] to :symbol "<=>" + assert -> equal? first [<<=] to :symbol "<<=" + assert -> equal? first [=>>] to :symbol "=>>" + assert -> equal? first [<<=>>] to :symbol "<<=>>" + assert -> equal? first [<-] to :symbol "<-" + assert -> equal? first [<->] to :symbol "<->" + assert -> equal? first [<<-] to :symbol "<<-" + assert -> equal? first [->>] to :symbol "->>" + assert -> equal? first [<<->>] to :symbol "<<->>" + assert -> equal? first [-<] to :symbol "-<" + assert -> equal? first [>-] to :symbol ">-" + assert -> equal? first [>-<] to :symbol ">-<" + assert -> equal? first [-<<] to :symbol "-<<" + assert -> equal? first [>>-] to :symbol ">>-" + assert -> equal? first [>>-<<] to :symbol ">>-<<" + assert -> equal? first [<<] to :symbol "<<" + assert -> equal? first [>>] to :symbol ">>" + assert -> equal? first [<<<] to :symbol "<<<" + assert -> equal? first [>>>] to :symbol ">>>" + assert -> equal? first [<--] to :symbol "<--" + assert -> equal? first [-->] to :symbol "-->" + assert -> equal? first [<-->] to :symbol "<-->" + assert -> equal? first [<==] to :symbol "<==" + assert -> equal? first [==>] to :symbol "==>" + assert -> equal? first [<==>] to :symbol "<==>" + assert -> equal? first [<~] to :symbol "<~" + assert -> equal? first [~>] to :symbol "~>" + assert -> equal? first [<~>] to :symbol "<~>" + assert -> equal? first [=<] to :symbol "=<" + assert -> equal? first [>=] to :symbol ">=" + assert -> equal? first [<>] to :symbol "<>" + assert -> equal? first [<:] to :symbol "<:" + assert -> equal? first [-:] to :symbol "-:" + assert -> equal? first [>:] to :symbol ">:" + assert -> equal? first [~] to :symbol "~" + assert -> equal? first [?] to :symbol "?" + assert -> equal? first [??] to :symbol "??" + assert -> equal? first [@] to :symbol "@" + assert -> equal? first [#] to :symbol "#" + assert -> equal? first [##] to :symbol "##" + assert -> equal? first [###] to :symbol "###" + assert -> equal? first [####] to :symbol "####" + assert -> equal? first [#####] to :symbol "#####" + assert -> equal? first [######] to :symbol "######" + assert -> equal? first [$] to :symbol "$" + assert -> equal? first [%] to :symbol "%" + assert -> equal? first [^] to :symbol "^" + assert -> equal? first [&] to :symbol "&" + assert -> equal? first [*] to :symbol "*" + assert -> equal? first [**] to :symbol "**" + assert -> equal? first [-] to :symbol "-" + assert -> equal? first [--] to :symbol "--" + assert -> equal? first [=] to :symbol "=" + assert -> equal? first [==] to :symbol "==" + assert -> equal? first [=~] to :symbol "=~" + assert -> equal? first [+] to :symbol "+" + assert -> equal? first [++] to :symbol "++" + assert -> equal? first [<] to :symbol "<" + assert -> equal? first [>] to :symbol ">" + assert -> equal? first [/] to :symbol "/" + assert -> equal? first [/%] to :symbol "/%" + assert -> equal? first [//] to :symbol "//" + assert -> equal? first [..] to :symbol ".." + assert -> equal? first [...] to :symbol "..." + assert -> equal? first [./] to :symbol "./" + assert -> equal? first [:=] to :symbol ":=" + assert -> equal? first [∅] to :symbol "∅" + assert -> equal? first [∞] to :symbol "∞" + assert -> equal? first [∑] to :symbol "∑" + assert -> equal? first [∏] to :symbol "∏" + assert -> equal? first [∩] to :symbol "∩" + assert -> equal? first [∪] to :symbol "∪" + assert -> equal? first [⊂] to :symbol "⊂" + assert -> equal? first [⊃] to :symbol "⊃" + assert -> equal? first [⊆] to :symbol "⊆" + assert -> equal? first [⊇] to :symbol "⊇" + assert -> equal? first [∈] to :symbol "∈" + assert -> equal? first [∉] to :symbol "∉" + assert -> equal? first [∧] to :symbol "∧" + assert -> equal? first [∨] to :symbol "∨" + assert -> equal? first [⊻] to :symbol "⊻" + assert -> equal? first [⊼] to :symbol "⊼" + assert -> equal? first [¬] to :symbol "¬" + ] + + section :type [] + section :version [] + +] + for :type [ section :char [] From f54248a97ad6e42c39070d88421757ba207a5229 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:14:37 -0300 Subject: [PATCH 075/114] [Types\to] test :string => :errorKind --- tests/unitt/lib/types/to.test.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index fccd784469..438ceaaeb7 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -142,6 +142,25 @@ for :date [ ] +for :errorKind [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + test ":string => :attribute" [ + assert -> equal? "example" get (to :errorKind "example") 'label + ] + + section :type [] + section :version [] + +] + for :floating [ section :char [] From b5b0246a268c8933e8746fef7d447727197cc30f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:17:22 -0300 Subject: [PATCH 076/114] [Types\to] test :string => :regex --- tests/unitt/lib/types/to.test.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 438ceaaeb7..b3172d2e8e 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -395,6 +395,25 @@ for :rational [ ] +for :regex [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + section :string [ + "(.*)" >> {/(.*)/} + ] + + section :type [] + section :version [] + +] + for :string [ From 358b8450228dd977fa7eadcb30aaaefc7cc33573 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:24:41 -0300 Subject: [PATCH 077/114] [Types\to] add comment --- tests/unitt/lib/types/to.test.art | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b3172d2e8e..eadcfbf928 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -62,7 +62,7 @@ for :binary [ section :logical [] section :null [] section :rational [] - section :string [] + section :string [] ; there is no way to test it... section :type [] section :version [] From 5ac2231947e3a30037260797ef379de9d59bccd2 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:25:43 -0300 Subject: [PATCH 078/114] [Types\to] test :string => :block --- tests/unitt/lib/types/to.test.art | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index eadcfbf928..84f99fe6e9 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -88,7 +88,11 @@ for :block [ (neg 1:5) >> @[neg 1 5] ] - section :string [] + section :string [ + ; Parses it as an arturo code + "a 1 1.5" >> [a 1 1.5] + ] + section :type [] section :version [] From 2f3f4be070c491fd6e8a1ee8661e25f80fb95477 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:30:43 -0300 Subject: [PATCH 079/114] [Types\to] test :string => :color --- tests/unitt/lib/types/to.test.art | 595 ++++++++++++++++++++++++++++++ 1 file changed, 595 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 84f99fe6e9..5c36d1e530 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -127,6 +127,601 @@ for :char [ ] +for :color [ + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + + section :string [ + "acidGreen" >> #acidGreen + "algaeGreen" >> #algaeGreen + "aliceBlue" >> #aliceBlue + "alienGray" >> #alienGray + "alienGreen" >> #alienGreen + "aloeVeraGreen" >> #aloeVeraGreen + "antiqueBronze" >> #antiqueBronze + "antiqueWhite" >> #antiqueWhite + "aquamarine" >> #aquamarine + "aquamarineStone" >> #aquamarineStone + "armyBrown" >> #armyBrown + "armyGreen" >> #armyGreen + "ashGray" >> #ashGray + "ashWhite" >> #ashWhite + "avocadoGreen" >> #avocadoGreen + "aztechPurple" >> #aztechPurple + "azure" >> #azure + "azureBlue" >> #azureBlue + "babyBlue" >> #babyBlue + "babyPink" >> #babyPink + "bakersBrown" >> #bakersBrown + "balloonBlue" >> #balloonBlue + "bananaYellow" >> #bananaYellow + "bashfulPink" >> #bashfulPink + "basketBallOrange" >> #basketBallOrange + "battleshipGray" >> #battleshipGray + "beanRed" >> #beanRed + "beer" >> #beer + "beetleGreen" >> #beetleGreen + "beeYellow" >> #beeYellow + "beige" >> #beige + "bisque" >> #bisque + "black" >> #black + "blackBean" >> #blackBean + "blackCat" >> #blackCat + "blackCow" >> #blackCow + "blackEel" >> #blackEel + "blanchedAlmond" >> #blanchedAlmond + "blonde" >> #blonde + "bloodNight" >> #bloodNight + "bloodRed" >> #bloodRed + "blossomPink" >> #blossomPink + "blue" >> #blue + "blueAngel" >> #blueAngel + "blueberryBlue" >> #blueberryBlue + "blueDiamond" >> #blueDiamond + "blueDress" >> #blueDress + "blueEyes" >> #blueEyes + "blueGray" >> #blueGray + "blueGreen" >> #blueGreen + "blueHosta" >> #blueHosta + "blueIvy" >> #blueIvy + "blueJay" >> #blueJay + "blueKoi" >> #blueKoi + "blueLagoon" >> #blueLagoon + "blueLotus" >> #blueLotus + "blueMossGreen" >> #blueMossGreen + "blueOrchid" >> #blueOrchid + "blueRibbon" >> #blueRibbon + "blueTurquoise" >> #blueTurquoise + "blueViolet" >> #blueViolet + "blueWhale" >> #blueWhale + "blueZircon" >> #blueZircon + "blush" >> #blush + "blushPink" >> #blushPink + "blushRed" >> #blushRed + "boldYellow" >> #boldYellow + "brass" >> #brass + "brightBlue" >> #brightBlue + "brightCyan" >> #brightCyan + "brightGold" >> #brightGold + "brightGreen" >> #brightGreen + "brightLilac" >> #brightLilac + "brightMaroon" >> #brightMaroon + "brightNavyBlue" >> #brightNavyBlue + "brightNeonPink" >> #brightNeonPink + "brightOrange" >> #brightOrange + "brightPurple" >> #brightPurple + "brightTurquoise" >> #brightTurquoise + "bronze" >> #bronze + "brown" >> #brown + "brownBear" >> #brownBear + "brownSand" >> #brownSand + "brownSugar" >> #brownSugar + "bulletShell" >> #bulletShell + "burgundy" >> #burgundy + "burlyWood" >> #burlyWood + "burntPink" >> #burntPink + "butterflyBlue" >> #butterflyBlue + "cadetBlue" >> #cadetBlue + "cadillacPink" >> #cadillacPink + "camelBrown" >> #camelBrown + "camouflageGreen" >> #camouflageGreen + "canaryBlue" >> #canaryBlue + "canaryYellow" >> #canaryYellow + "cantaloupe" >> #cantaloupe + "caramel" >> #caramel + "carbonGray" >> #carbonGray + "carbonRed" >> #carbonRed + "cardboardBrown" >> #cardboardBrown + "carnationPink" >> #carnationPink + "carrotOrange" >> #carrotOrange + "celeste" >> #celeste + "chameleonGreen" >> #chameleonGreen + "champagne" >> #champagne + "charcoal" >> #charcoal + "charcoalBlue" >> #charcoalBlue + "chartreuse" >> #chartreuse + "cherryRed" >> #cherryRed + "chestnut" >> #chestnut + "chestnutRed" >> #chestnutRed + "chilliPepper" >> #chilliPepper + "chocolate" >> #chocolate + "chocolateBrown" >> #chocolateBrown + "cinnamon" >> #cinnamon + "clemantisViolet" >> #clemantisViolet + "cloudyGray" >> #cloudyGray + "cloverGreen" >> #cloverGreen + "cobaltBlue" >> #cobaltBlue + "coffee" >> #coffee + "columbiaBlue" >> #columbiaBlue + "constructionConeOrange" >> #constructionConeOrange + "cookieBrown" >> #cookieBrown + "copper" >> #copper + "copperRed" >> #copperRed + "coral" >> #coral + "coralBlue" >> #coralBlue + "cornflowerBlue" >> #cornflowerBlue + "cornsilk" >> #cornsilk + "cornYellow" >> #cornYellow + "cotton" >> #cotton + "cottonCandy" >> #cottonCandy + "cranberry" >> #cranberry + "cream" >> #cream + "crimson" >> #crimson + "crimsonPurple" >> #crimsonPurple + "crocusPurple" >> #crocusPurple + "crystalBlue" >> #crystalBlue + "cyan" >> #cyan + "cyanOpaque" >> #cyanOpaque + "darkBisque" >> #darkBisque + "darkBlonde" >> #darkBlonde + "darkBlue" >> #darkBlue + "darkBlueGrey" >> #darkBlueGrey + "darkBrown" >> #darkBrown + "darkCarnationPink" >> #darkCarnationPink + "darkCoffee" >> #darkCoffee + "darkCyan" >> #darkCyan + "darkForestGreen" >> #darkForestGreen + "darkGoldenRod" >> #darkGoldenRod + "darkGray" >> #darkGray + "darkGray" >> #darkGray + "darkGreen" >> #darkGreen + "darkHotPink" >> #darkHotPink + "darkKhaki" >> #darkKhaki + "darkLimeGreen" >> #darkLimeGreen + "darkMagenta" >> #darkMagenta + "darkMint" >> #darkMint + "darkMoccasin" >> #darkMoccasin + "darkOliveGreen" >> #darkOliveGreen + "darkOrange" >> #darkOrange + "darkOrchid" >> #darkOrchid + "darkPink" >> #darkPink + "darkPurple" >> #darkPurple + "darkRaspberry" >> #darkRaspberry + "darkRed" >> #darkRed + "darkSalmon" >> #darkSalmon + "darkSeaGreen" >> #darkSeaGreen + "darkSienna" >> #darkSienna + "darkSlate" >> #darkSlate + "darkSlateBlue" >> #darkSlateBlue + "darkSlateGray" >> #darkSlateGray + "darkTurquoise" >> #darkTurquoise + "darkViolet" >> #darkViolet + "darkYellow" >> #darkYellow + "daySkyBlue" >> #daySkyBlue + "deepEmeraldGreen" >> #deepEmeraldGreen + "deepMauve" >> #deepMauve + "deepPeach" >> #deepPeach + "deepPeriwinkle" >> #deepPeriwinkle + "deepPink" >> #deepPink + "deepPurple" >> #deepPurple + "deepRed" >> #deepRed + "deepRose" >> #deepRose + "deepSea" >> #deepSea + "deepSeaBlue" >> #deepSeaBlue + "deepSeaGreen" >> #deepSeaGreen + "deepSkyBlue" >> #deepSkyBlue + "deepTeal" >> #deepTeal + "deepTurquoise" >> #deepTurquoise + "deepYellow" >> #deepYellow + "deerBrown" >> #deerBrown + "denimBlue" >> #denimBlue + "denimDarkBlue" >> #denimDarkBlue + "desertSand" >> #desertSand + "dimGray" >> #dimGray + "dimorphothecaMagenta" >> #dimorphothecaMagenta + "dinosaurGreen" >> #dinosaurGreen + "dodgerBlue" >> #dodgerBlue + "dollarBillGreen" >> #dollarBillGreen + "donutPink" >> #donutPink + "dragonGreen" >> #dragonGreen + "dullGreenYellow" >> #dullGreenYellow + "dullPurple" >> #dullPurple + "dullSeaGreen" >> #dullSeaGreen + "earthBlue" >> #earthBlue + "earthGreen" >> #earthGreen + "eggplant" >> #eggplant + "eggShell" >> #eggShell + "electricBlue" >> #electricBlue + "emerald" >> #emerald + "emeraldGreen" >> #emeraldGreen + "fallForestGreen" >> #fallForestGreen + "fallLeafBrown" >> #fallLeafBrown + "fernGreen" >> #fernGreen + "ferrariRed" >> #ferrariRed + "fireBrick" >> #fireBrick + "fireEngineRed" >> #fireEngineRed + "flamingoPink" >> #flamingoPink + "floralWhite" >> #floralWhite + "forestGreen" >> #forestGreen + "frenchLilac" >> #frenchLilac + "frogGreen" >> #frogGreen + "gainsboro" >> #gainsboro + "ghostWhite" >> #ghostWhite + "gingerBrown" >> #gingerBrown + "glacialBlueIce" >> #glacialBlueIce + "gold" >> #gold + "goldenBlonde" >> #goldenBlonde + "goldenBrown" >> #goldenBrown + "goldenRod" >> #goldenRod + "goldenSilk" >> #goldenSilk + "goldenYellow" >> #goldenYellow + "granite" >> #granite + "grape" >> #grape + "grapefruit" >> #grapefruit + "gray" >> #gray + "grayBrown" >> #grayBrown + "grayCloud" >> #grayCloud + "grayDolphin" >> #grayDolphin + "grayGoose" >> #grayGoose + "grayishTurquoise" >> #grayishTurquoise + "grayWolf" >> #grayWolf + "green" >> #green + "greenApple" >> #greenApple + "greenishBlue" >> #greenishBlue + "greenOnion" >> #greenOnion + "greenPeas" >> #greenPeas + "greenPepper" >> #greenPepper + "greenSnake" >> #greenSnake + "greenThumb" >> #greenThumb + "greenYellow" >> #greenYellow + "gulfBlue" >> #gulfBlue + "gunmetal" >> #gunmetal + "halloweenOrange" >> #halloweenOrange + "harvestGold" >> #harvestGold + "hazel" >> #hazel + "hazelGreen" >> #hazelGreen + "heavenlyBlue" >> #heavenlyBlue + "heliotropePurple" >> #heliotropePurple + "honeyDew" >> #honeyDew + "hotDeepPink" >> #hotDeepPink + "hotPink" >> #hotPink + "hummingbirdGreen" >> #hummingbirdGreen + "iceberg" >> #iceberg + "iguanaGreen" >> #iguanaGreen + "indianRed" >> #indianRed + "indianSaffron" >> #indianSaffron + "indigo" >> #indigo + "iridium" >> #iridium + "ironGray" >> #ironGray + "ivory" >> #ivory + "jade" >> #jade + "jadeGreen" >> #jadeGreen + "jasminePurple" >> #jasminePurple + "jeansBlue" >> #jeansBlue + "jellyfish" >> #jellyfish + "jetGray" >> #jetGray + "jungleGreen" >> #jungleGreen + "kellyGreen" >> #kellyGreen + "khaki" >> #khaki + "khakiRose" >> #khakiRose + "lapisBlue" >> #lapisBlue + "lavaRed" >> #lavaRed + "lavender" >> #lavender + "lavenderBlue" >> #lavenderBlue + "lavenderBlush" >> #lavenderBlush + "lavenderPinocchio" >> #lavenderPinocchio + "lavenderPurple" >> #lavenderPurple + "lawnGreen" >> #lawnGreen + "lemonChiffon" >> #lemonChiffon + "lightAquamarine" >> #lightAquamarine + "lightBlack" >> #lightBlack + "lightBlue" >> #lightBlue + "lightBrown" >> #lightBrown + "lightCopper" >> #lightCopper + "lightCoral" >> #lightCoral + "lightCyan" >> #lightCyan + "lightDayBlue" >> #lightDayBlue + "lightFrenchBeige" >> #lightFrenchBeige + "lightGold" >> #lightGold + "lightGoldenRodYellow" >> #lightGoldenRodYellow + "lightGray" >> #lightGray + "lightGreen" >> #lightGreen + "lightJade" >> #lightJade + "lightOrange" >> #lightOrange + "lightPink" >> #lightPink + "lightPurple" >> #lightPurple + "lightPurpleBlue" >> #lightPurpleBlue + "lightRed" >> #lightRed + "lightRose" >> #lightRose + "lightRoseGreen" >> #lightRoseGreen + "lightSalmon" >> #lightSalmon + "lightSalmonRose" >> #lightSalmonRose + "lightSeaGreen" >> #lightSeaGreen + "lightSkyBlue" >> #lightSkyBlue + "lightSlate" >> #lightSlate + "lightSlateBlue" >> #lightSlateBlue + "lightSlateGray" >> #lightSlateGray + "lightSteelBlue" >> #lightSteelBlue + "lightWhite" >> #lightWhite + "lightYellow" >> #lightYellow + "lilac" >> #lilac + "lime" >> #lime + "limeGreen" >> #limeGreen + "limeMintGreen" >> #limeMintGreen + "linen" >> #linen + "lipstickPink" >> #lipstickPink + "lovelyPurple" >> #lovelyPurple + "loveRed" >> #loveRed + "macaroniAndCheese" >> #macaroniAndCheese + "macawBlueGreen" >> #macawBlueGreen + "magenta" >> #magenta + "magicMint" >> #magicMint + "mahogany" >> #mahogany + "mangoOrange" >> #mangoOrange + "marbleBlue" >> #marbleBlue + "maroon" >> #maroon + "mauve" >> #mauve + "mauveTaupe" >> #mauveTaupe + "mediumAquaMarine" >> #mediumAquaMarine + "mediumBlue" >> #mediumBlue + "mediumForestGreen" >> #mediumForestGreen + "mediumOrchid" >> #mediumOrchid + "mediumPurple" >> #mediumPurple + "mediumSeaGreen" >> #mediumSeaGreen + "mediumSlateBlue" >> #mediumSlateBlue + "mediumSpringGreen" >> #mediumSpringGreen + "mediumTeal" >> #mediumTeal + "mediumTurquoise" >> #mediumTurquoise + "mediumVioletRed" >> #mediumVioletRed + "metallicGold" >> #metallicGold + "metallicSilver" >> #metallicSilver + "middayBlue" >> #middayBlue + "midnight" >> #midnight + "midnightBlue" >> #midnightBlue + "milkChocolate" >> #milkChocolate + "milkWhite" >> #milkWhite + "mint" >> #mint + "mintCream" >> #mintCream + "mintGreen" >> #mintGreen + "mistBlue" >> #mistBlue + "mistyRose" >> #mistyRose + "moccasin" >> #moccasin + "mocha" >> #mocha + "mustardYellow" >> #mustardYellow + "navajoWhite" >> #navajoWhite + "navy" >> #navy + "nebulaGreen" >> #nebulaGreen + "neonBlue" >> #neonBlue + "neonGreen" >> #neonGreen + "neonHotPink" >> #neonHotPink + "neonOrange" >> #neonOrange + "neonPink" >> #neonPink + "neonPurple" >> #neonPurple + "neonRed" >> #neonRed + "neonYellow" >> #neonYellow + "neonYellowGreen" >> #neonYellowGreen + "newMidnightBlue" >> #newMidnightBlue + "night" >> #night + "nightBlue" >> #nightBlue + "northernLightsBlue" >> #northernLightsBlue + "oakBrown" >> #oakBrown + "oceanBlue" >> #oceanBlue + "offWhite" >> #offWhite + "oil" >> #oil + "oldBurgundy" >> #oldBurgundy + "oldLace" >> #oldLace + "olive" >> #olive + "oliveDrab" >> #oliveDrab + "oliveGreen" >> #oliveGreen + "orange" >> #orange + "orangeGold" >> #orangeGold + "orangeRed" >> #orangeRed + "orangeSalmon" >> #orangeSalmon + "orangeYellow" >> #orangeYellow + "orchid" >> #orchid + "orchidPurple" >> #orchidPurple + "organicBrown" >> #organicBrown + "paleBlueLily" >> #paleBlueLily + "paleGoldenRod" >> #paleGoldenRod + "paleGreen" >> #paleGreen + "paleLilac" >> #paleLilac + "paleSilver" >> #paleSilver + "paleTurquoise" >> #paleTurquoise + "paleVioletRed" >> #paleVioletRed + "papayaOrange" >> #papayaOrange + "papayaWhip" >> #papayaWhip + "parchment" >> #parchment + "parrotGreen" >> #parrotGreen + "pastelBlue" >> #pastelBlue + "pastelGreen" >> #pastelGreen + "pastelLightBlue" >> #pastelLightBlue + "pastelOrange" >> #pastelOrange + "pastelPink" >> #pastelPink + "pastelPurple" >> #pastelPurple + "pastelRed" >> #pastelRed + "pastelViolet" >> #pastelViolet + "pastelYellow" >> #pastelYellow + "peach" >> #peach + "peachPuff" >> #peachPuff + "peaGreen" >> #peaGreen + "pearl" >> #pearl + "periwinkle" >> #periwinkle + "periwinklePink" >> #periwinklePink + "periwinklePurple" >> #periwinklePurple + "peru" >> #peru + "pigPink" >> #pigPink + "pineGreen" >> #pineGreen + "pink" >> #pink + "pinkBrown" >> #pinkBrown + "pinkBubbleGum" >> #pinkBubbleGum + "pinkCoral" >> #pinkCoral + "pinkCupcake" >> #pinkCupcake + "pinkDaisy" >> #pinkDaisy + "pinkLemonade" >> #pinkLemonade + "pinkPlum" >> #pinkPlum + "pinkRose" >> #pinkRose + "pinkViolet" >> #pinkViolet + "pistachioGreen" >> #pistachioGreen + "platinum" >> #platinum + "platinumGray" >> #platinumGray + "platinumSilver" >> #platinumSilver + "plum" >> #plum + "plumPie" >> #plumPie + "plumPurple" >> #plumPurple + "plumVelvet" >> #plumVelvet + "powderBlue" >> #powderBlue + "puce" >> #puce + "pumpkinOrange" >> #pumpkinOrange + "purple" >> #purple + "purpleAmethyst" >> #purpleAmethyst + "purpleDaffodil" >> #purpleDaffodil + "purpleDragon" >> #purpleDragon + "purpleFlower" >> #purpleFlower + "purpleHaze" >> #purpleHaze + "purpleIris" >> #purpleIris + "purpleJam" >> #purpleJam + "purpleLily" >> #purpleLily + "purpleMaroon" >> #purpleMaroon + "purpleMimosa" >> #purpleMimosa + "purpleMonster" >> #purpleMonster + "purpleNavy" >> #purpleNavy + "purplePink" >> #purplePink + "purplePlum" >> #purplePlum + "purpleSageBush" >> #purpleSageBush + "purpleThistle" >> #purpleThistle + "purpleViolet" >> #purpleViolet + "raspberry" >> #raspberry + "raspberryPurple" >> #raspberryPurple + "ratGray" >> #ratGray + "rebeccaPurple" >> #rebeccaPurple + "red" >> #red + "redBlood" >> #redBlood + "redDirt" >> #redDirt + "redFox" >> #redFox + "rice" >> #rice + "richLilac" >> #richLilac + "robinEggBlue" >> #robinEggBlue + "roguePink" >> #roguePink + "romanSilver" >> #romanSilver + "rose" >> #rose + "roseDust" >> #roseDust + "roseGold" >> #roseGold + "roseRed" >> #roseRed + "rosyBrown" >> #rosyBrown + "rosyFinch" >> #rosyFinch + "rosyPink" >> #rosyPink + "royalBlue" >> #royalBlue + "rubberDuckyYellow" >> #rubberDuckyYellow + "rubyRed" >> #rubyRed + "rust" >> #rust + "saddleBrown" >> #saddleBrown + "saffron" >> #saffron + "saffronRed" >> #saffronRed + "sage" >> #sage + "sageGreen" >> #sageGreen + "saladGreen" >> #saladGreen + "salmon" >> #salmon + "sand" >> #sand + "sandstone" >> #sandstone + "sandyBrown" >> #sandyBrown + "sangria" >> #sangria + "sapphireBlue" >> #sapphireBlue + "scarlet" >> #scarlet + "schoolBusYellow" >> #schoolBusYellow + "seaBlue" >> #seaBlue + "seafoamGreen" >> #seafoamGreen + "seaGreen" >> #seaGreen + "seaShell" >> #seaShell + "seaTurtleGreen" >> #seaTurtleGreen + "seaweedGreen" >> #seaweedGreen + "sedona" >> #sedona + "sepia" >> #sepia + "sepiaBrown" >> #sepiaBrown + "shamrockGreen" >> #shamrockGreen + "shockingOrange" >> #shockingOrange + "sienna" >> #sienna + "silkBlue" >> #silkBlue + "silver" >> #silver + "silverPink" >> #silverPink + "skyBlue" >> #skyBlue + "skyBlueDress" >> #skyBlueDress + "slateBlue" >> #slateBlue + "slateBlueGrey" >> #slateBlueGrey + "slateGraniteGray" >> #slateGraniteGray + "slateGray" >> #slateGray + "slimeGreen" >> #slimeGreen + "smokeyGray" >> #smokeyGray + "snow" >> #snow + "softIvory" >> #softIvory + "sonicSilver" >> #sonicSilver + "springGreen" >> #springGreen + "steelBlue" >> #steelBlue + "stoplightGoGreen" >> #stoplightGoGreen + "sunriseOrange" >> #sunriseOrange + "sunYellow" >> #sunYellow + "tan" >> #tan + "tanBrown" >> #tanBrown + "tangerine" >> #tangerine + "taupe" >> #taupe + "teaGreen" >> #teaGreen + "teal" >> #teal + "thistle" >> #thistle + "tiffanyBlue" >> #tiffanyBlue + "tigerOrange" >> #tigerOrange + "tomato" >> #tomato + "tomatoSauceRed" >> #tomatoSauceRed + "tronBlue" >> #tronBlue + "tulipPink" >> #tulipPink + "turquoise" >> #turquoise + "tyrianPurple" >> #tyrianPurple + "unbleachedSilk" >> #unbleachedSilk + "valentineRed" >> #valentineRed + "vampireGray" >> #vampireGray + "vanilla" >> #vanilla + "velvetMaroon" >> #velvetMaroon + "venomGreen" >> #venomGreen + "violaPurple" >> #violaPurple + "violet" >> #violet + "violetRed" >> #violetRed + "water" >> #water + "watermelonPink" >> #watermelonPink + "westernCharcoal" >> #westernCharcoal + "wheat" >> #wheat + "white" >> #white + "whiteChocolate" >> #whiteChocolate + "whiteSmoke" >> #whiteSmoke + "windowsBlue" >> #windowsBlue + "wineRed" >> #wineRed + "wisteriaPurple" >> #wisteriaPurple + "wood" >> #wood + "yellow" >> #yellow + "yellowGreen" >> #yellowGreen + "yellowGreenGrosbeak" >> #yellowGreenGrosbeak + "yellowLawnGreen" >> #yellowLawnGreen + "zombieGreen" >> #zombieGreen + ] + + section :type [] + section :version [] + +] + for :date [ section :char [] From bfe42e12a979ed05499ebacf116740f07f267392 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:31:32 -0300 Subject: [PATCH 080/114] [Types\to] minor test fix --- tests/unitt/lib/types/to.test.art | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 5c36d1e530..229c60dd69 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -32,7 +32,7 @@ for :attributeLabel [ section :null [] section :rational [] - test ":string => :attribute" [ + test ":string => :attributeLabel" [ assert -> equal? first [.example:] to :attributeLabel "example" @@ -751,7 +751,7 @@ for :errorKind [ section :null [] section :rational [] - test ":string => :attribute" [ + test ":string => :errorKind" [ assert -> equal? "example" get (to :errorKind "example") 'label ] From ef100d1da8a0d39588469ffcab2dd092db3dee57 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:35:46 -0300 Subject: [PATCH 081/114] [Types\to] test :string => :date --- tests/unitt/lib/types/to.test.art | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 229c60dd69..75ea1e0a23 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -735,7 +735,13 @@ for :date [ section :logical [] section :null [] section :rational [] - section :string [] + + section :string [ + "1969-12-31T21:00:00-03:00" >> to :date "1969-12-31T21:00:00-03:00" + ] + + ; TODO(Types\to): test .format + section :type [] section :version [] From 3ea1ad8638f8cf386cfff7367a2842f92a35ad59 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:37:08 -0300 Subject: [PATCH 082/114] [Types\to] test :literal => :literal --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 75ea1e0a23..b95b005f68 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -886,6 +886,11 @@ for :literal [ section :complex [] section :floating [] section :integer [] + + section :literal [ + 'example >> 'example + ] + section :logical [] section :null [] section :rational [] From 5ad3f25f22d3b47dd26e25302d3af3fc849abae7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:37:42 -0300 Subject: [PATCH 083/114] [Types\to] test :literal => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b95b005f68..835bac7225 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1048,6 +1048,10 @@ for :string [ (neg 1) >> "-1" ] + section :literal [ + 'example >> "example" + ] + section :logical [ true >> "true" false >> "false" From 4c70aca51e769da4a7dd4dba57654f7f93273b16 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:38:47 -0300 Subject: [PATCH 084/114] [Types\to] test :literal => :word --- tests/unitt/lib/types/to.test.art | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 835bac7225..b7fc104b21 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1264,6 +1264,13 @@ for :word [ section :complex [] section :floating [] section :integer [] + + test ":literal => :word" [ + assert -> equal? + first [example] + to :word 'example + ] + section :logical [] section :null [] section :rational [] From e14756e7e6cb6d7dec1c4eb6398b248390f54dcd Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:40:31 -0300 Subject: [PATCH 085/114] [Types\to] test :word => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index b7fc104b21..949a58e41f 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1087,6 +1087,10 @@ for :string [ 1.2.3-pre >> "1.2.3-pre" ] + test ":word => :string" [ + assert -> equal? "example" to :string first [example] + ] + ] for :symbol [ From f8078e9b70d489b08272663f2d520734f115f3b1 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:41:14 -0300 Subject: [PATCH 086/114] [Types\to] test :word => :literal --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 949a58e41f..32304940cd 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -902,6 +902,10 @@ for :literal [ section :type [] section :version [] + test ":word => :literal" [ + assert -> equal? 'example to :literal first [example] + ] + ] From 9534a943a122728ca77fadec06a61ece8962e2a7 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:41:52 -0300 Subject: [PATCH 087/114] [Types\to] test :word => :word --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 32304940cd..624cf05b7e 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1292,4 +1292,8 @@ for :word [ section :type [] section :version [] + test ":word => :word" [ + assert -> equal? first [example] to :word first [example] + ] + ] \ No newline at end of file From cc433b2ec3e91cb3b90a2a9cd51ba87bed3ab99e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:44:08 -0300 Subject: [PATCH 088/114] [Types\to] test :attribute(Label) => :string --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 624cf05b7e..83812d436b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1031,6 +1031,11 @@ for :regex [ for :string [ + test ":attribute(Label) => :string" [ + assert -> equal? "example" to :string first [.example] + assert -> equal? "example" to :string first [.example:] + ] + section :char [ 'K' >> "K" 'Ϩ' >> "Ϩ" ; supports UNICODE From 8b02efb678aafd5ca49db87e199fec815dac2d78 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:45:02 -0300 Subject: [PATCH 089/114] [Types\to] test :attribute(Label) => :literal --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 83812d436b..a87f21d5dc 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -882,6 +882,11 @@ for :label [ for :literal [ + test ":attribute(Label) => :literal" [ + assert -> equal? 'example to :literal first [.example] + assert -> equal? 'example to :literal first [.example:] + ] + section :char [] section :complex [] section :floating [] From 04ae7b7cb78f6331282d39b13eb2f5bbbe114f1e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:47:15 -0300 Subject: [PATCH 090/114] [Types\to] add TODO --- tests/unitt/lib/types/to.test.art | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index a87f21d5dc..2d38ba8c66 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1278,6 +1278,12 @@ for :version [ for :word [ + ; TODO: verify this behavior + test ":attribute(Label) => :word" [ + ; assert -> equal? first [example] to :word first [.example] + ; assert -> equal? first [example] to :word first [.example:] + ] + section :char [] section :complex [] section :floating [] From 6bec017c2a90d13de29a6f875ff80e74d14f8cbe Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:51:37 -0300 Subject: [PATCH 091/114] [Types\to] test :literal => :block --- tests/unitt/lib/types/to.test.art | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 2d38ba8c66..85f416f0bc 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -77,6 +77,13 @@ for :block [ ] section :floating [] + + test ":inline => :block" [ + assert -> equal? + [hello, world] + to :block first [(hello, world)] + ] + section :integer [] section :logical [] section :null [] From 1906ca43fb460b5c7367b689f17b559d3b9b91d8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:55:40 -0300 Subject: [PATCH 092/114] [Types\to] add empty tests --- tests/unitt/lib/types/to.test.art | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 85f416f0bc..caabb27de1 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -3,6 +3,7 @@ import ./{to.helper.art}! for :attribute [ + section :block [] section :char [] section :complex [] section :floating [] @@ -24,6 +25,7 @@ for :attribute [ for :attributeLabel [ + section :block [] section :char [] section :complex [] section :floating [] @@ -45,6 +47,7 @@ for :attributeLabel [ for :binary [ + section :block [] section :char [ 'K' >> to :binary 75 ] @@ -70,6 +73,7 @@ for :binary [ for :block [ + section :block [] section :char [] section :complex [ @@ -107,6 +111,7 @@ for :block [ for :char [ + section :block [] section :char [] section :complex [] @@ -136,6 +141,7 @@ for :char [ for :color [ + section :block [] section :char [] section :complex [] section :floating [] @@ -729,8 +735,28 @@ for :color [ ] +for :complex [ + + section :block [ + + ] + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + section :string [] + section :type [] + section :version [] + +] + for :date [ + section :block [] section :char [] section :complex [] section :floating [] @@ -756,6 +782,7 @@ for :date [ for :errorKind [ + section :block [] section :char [] section :complex [] section :floating [] @@ -775,6 +802,7 @@ for :errorKind [ for :floating [ + section :block [] section :char [] section :complex [] @@ -816,6 +844,7 @@ for :floating [ for :integer [ + section :block [] section :char [ 'K' >> 75 'Ϩ' >> 1000 ; supports UNICODE @@ -868,6 +897,7 @@ for :integer [ for :label [ + section :block [] section :char [] section :complex [] section :floating [] @@ -894,6 +924,7 @@ for :literal [ assert -> equal? 'example to :literal first [.example:] ] + section :block [] section :char [] section :complex [] section :floating [] @@ -923,6 +954,7 @@ for :literal [ for :logical [ + section :block [] section :char [] section :complex [] @@ -964,6 +996,7 @@ for :logical [ for :quantity [ + section :block [] section :char [] section :complex [] @@ -997,6 +1030,7 @@ for :quantity [ for :rational [ + section :block [] section :char [] section :complex [] @@ -1023,6 +1057,7 @@ for :rational [ for :regex [ + section :block [] section :char [] section :complex [] section :floating [] @@ -1048,6 +1083,8 @@ for :string [ assert -> equal? "example" to :string first [.example:] ] + section :block [] + section :char [ 'K' >> "K" 'Ϩ' >> "Ϩ" ; supports UNICODE @@ -1116,6 +1153,7 @@ for :string [ for :symbol [ + section :block [] section :char [] section :complex [] section :floating [] @@ -1239,6 +1277,7 @@ for :symbol [ for :type [ + section :block [] section :char [] section :complex [] section :floating [] @@ -1265,6 +1304,7 @@ for :type [ for :version [ + section :block [] section :char [] section :complex [] section :floating [] @@ -1291,6 +1331,7 @@ for :word [ ; assert -> equal? first [example] to :word first [.example:] ] + section :block [] section :char [] section :complex [] section :floating [] From 0cde62f29b351dfc0de5c6da91ebf49a54e044c4 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:56:52 -0300 Subject: [PATCH 093/114] [Types\to] test :block => :complex --- tests/unitt/lib/types/to.test.art | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index caabb27de1..75d392331b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -738,7 +738,7 @@ for :color [ for :complex [ section :block [ - + [1 5] >> (to :complex [1.0 5.0]) ] section :char [] From 19740e84fd6710cd32e40b1528918df11223a60c Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:58:04 -0300 Subject: [PATCH 094/114] [Types\to] test :block => :rational --- tests/unitt/lib/types/to.test.art | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 75d392331b..8fe4dc62dc 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1030,7 +1030,12 @@ for :quantity [ for :rational [ - section :block [] + section :block [ + [1 1] >> 1:1 + [1 2] >> 1:2 + [10 5] >> 2:1 + (@[neg 1 1]) >> (neg 1:1) + ] section :char [] section :complex [] From 2161c5647de33e447763b398ac4f855b9c1dc6b5 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 22:59:47 -0300 Subject: [PATCH 095/114] [Types\to] test :block => :string --- tests/unitt/lib/types/to.test.art | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 8fe4dc62dc..5cf1c6fda1 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1088,7 +1088,9 @@ for :string [ assert -> equal? "example" to :string first [.example:] ] - section :block [] + section :block [ + [arturo language 12 3.0] >> "[arturo language 12 3.0]" + ] section :char [ 'K' >> "K" From 5b407ce254835a662b768e2a6b4f57c6a1da817f Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:07:50 -0300 Subject: [PATCH 096/114] [Types\to] test :block => :inline --- tests/unitt/lib/types/to.test.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 5cf1c6fda1..ce6008ddaa 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -842,6 +842,25 @@ for :floating [ section :version [] ] +for :inline [ + + test ":block => :inline" [ + assert -> equal? first [(1 2 3)] to :inline [1 2 3] + ] + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + section :string [] + section :type [] + section :version [] + +] + for :integer [ section :block [] From 8d2445fb78068447709e830b4e07de43d710e6f1 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:14:23 -0300 Subject: [PATCH 097/114] [Types\to] test :block => :dictionary --- tests/unitt/lib/types/to.test.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index ce6008ddaa..49670e60e4 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -780,6 +780,25 @@ for :date [ ] +for :dictionary [ + + section :block [ + ["user" "John"] >> #[user: "John"] + ] + + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + section :rational [] + section :string [] + section :type [] + section :version [] + +] + for :errorKind [ section :block [] From bee8afd48e92e03af18f6ff5ca95a9a6d3cfb30c Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:18:38 -0300 Subject: [PATCH 098/114] [Types\to] test :block => :quantity --- tests/unitt/lib/types/to.test.art | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 49670e60e4..76174f62a4 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1034,7 +1034,23 @@ for :logical [ for :quantity [ - section :block [] + section :block [ + [1 `m ] >> 1`m + [1 m ] >> 1`m + [1 'm ] >> 1`m + [1 "m"] >> 1`m + + [1.0 `m ] >> 1`m + [1.0 m ] >> 1`m + [1.0 'm ] >> 1`m + [1.0 "m"] >> 1`m + + [1:1 `m ] >> 1`m + [1:1 m ] >> 1`m + [1:1 'm ] >> 1`m + [1:1 "m"] >> 1`m + ] + section :char [] section :complex [] From f75d0251ff4799cb4b622e13db16b0651609d826 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:28:13 -0300 Subject: [PATCH 099/114] [Types\to] test :block => :color --- tests/unitt/lib/types/to.test.art | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 76174f62a4..2006ffcebb 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -141,7 +141,21 @@ for :char [ for :color [ - section :block [] + section :block [ + [255 255 255] >> #white + [255 255 255 255] >> #white + ] + + test ":block => :color (hsv)" [ + assert -> equal? #white to :color .hsv [0 0.0 1.0] + assert -> equal? #white to :color .hsv [0 0.0 1.0 1.0] + ] + + test ":block => :color (hsl)" [ + assert -> equal? #white to :color .hsl [180 0.0 1.0] + assert -> equal? #white to :color .hsl [180 0.0 1.0 1.0] + ] + section :char [] section :complex [] section :floating [] From 9dc0b5504718d65ef0029ff6b79f99c33821a6eb Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:32:28 -0300 Subject: [PATCH 100/114] [Types\to] test :range => :block --- tests/unitt/lib/types/to.test.art | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 2006ffcebb..651db39deb 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -92,6 +92,13 @@ for :block [ section :logical [] section :null [] + section :range [ + ; TODO: should this be the same as @ + ; or shoud it return [1 10] or [1 10 2] + (1..10) >> [1 2 3 4 5 6 7 8 9 10] + (1.. .step: 2 10) >> [1 3 5 7 9] + ] + section :rational [ 1:2 >> [1 2] 0:5 >> [0 1] From 9bae276ec914ae537d21e82abf8e323fcd122a80 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:34:45 -0300 Subject: [PATCH 101/114] [Types\to] test :dictionary => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 651db39deb..21547189f1 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1176,6 +1176,10 @@ for :string [ (to :complex [1 5]) >> "1.0+5.0i" ] + section :dictionary [ + (#[name: "John"]) >> "[name:John]" + ] + section :floating [ 1.0 >> "1.0" 0.0 >> "0.0" From 1e5483ca24e96f16b7c2b2e72f8dbce1d5309db8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:38:54 -0300 Subject: [PATCH 102/114] [Types\to] test :symbol => :string --- tests/unitt/lib/types/to.test.art | 108 ++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 21547189f1..a3c51fa793 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1215,6 +1215,114 @@ for :string [ section :string [] + test ":string => :symbol" [ + ; Unable to parse here? + ; + ; assert -> equal? "=>" to :string first [=>] + ; assert -> equal? "->" to :string first [->] + ; assert -> equal? "!" to :string first [!] + ; assert -> equal? "!!" to :string first [!!] + ; assert -> equal? "\\" to :string first [\\] + ; assert -> equal? "\\\\" to :string first [\\\\] + ; assert -> equal? "|" to :string first [|] + ; assert -> equal? "|-" to :string first [|-] + ; assert -> equal? "|=" to :string first [|=] + ; assert -> equal? ":" to :string first [:] + ; assert -> equal? "::" to :string first [::] + ; assert -> equal? "||" to :string first [||] + + ; Error: Found extraneous block symbol: closing square bracket (`]`) ??? + ; + ; assert -> equal? "<|" to :string first [<|] + ; assert -> equal? "|>" to :string first [|>] + ; assert -> equal? "<|>" to :string first [<|>] + + assert -> equal? "<=" to :string first [<=] + assert -> equal? "<=>" to :string first [<=>] + assert -> equal? "<<=" to :string first [<<=] + assert -> equal? "=>>" to :string first [=>>] + assert -> equal? "<<=>>" to :string first [<<=>>] + assert -> equal? "<-" to :string first [<-] + assert -> equal? "<->" to :string first [<->] + assert -> equal? "<<-" to :string first [<<-] + assert -> equal? "->>" to :string first [->>] + assert -> equal? "<<->>" to :string first [<<->>] + assert -> equal? "-<" to :string first [-<] + assert -> equal? ">-" to :string first [>-] + assert -> equal? ">-<" to :string first [>-<] + assert -> equal? "-<<" to :string first [-<<] + assert -> equal? ">>-" to :string first [>>-] + assert -> equal? ">>-<<" to :string first [>>-<<] + assert -> equal? "<<" to :string first [<<] + assert -> equal? ">>" to :string first [>>] + assert -> equal? "<<<" to :string first [<<<] + assert -> equal? ">>>" to :string first [>>>] + assert -> equal? "<--" to :string first [<--] + assert -> equal? "-->" to :string first [-->] + assert -> equal? "<-->" to :string first [<-->] + assert -> equal? "<==" to :string first [<==] + assert -> equal? "==>" to :string first [==>] + assert -> equal? "<==>" to :string first [<==>] + assert -> equal? "<~" to :string first [<~] + assert -> equal? "~>" to :string first [~>] + assert -> equal? "<~>" to :string first [<~>] + assert -> equal? "=<" to :string first [=<] + assert -> equal? ">=" to :string first [>=] + assert -> equal? "<>" to :string first [<>] + assert -> equal? "<:" to :string first [<:] + assert -> equal? "-:" to :string first [-:] + assert -> equal? ">:" to :string first [>:] + assert -> equal? "~" to :string first [~] + assert -> equal? "?" to :string first [?] + assert -> equal? "??" to :string first [??] + assert -> equal? "@" to :string first [@] + assert -> equal? "#" to :string first [#] + assert -> equal? "##" to :string first [##] + assert -> equal? "###" to :string first [###] + assert -> equal? "####" to :string first [####] + assert -> equal? "#####" to :string first [#####] + assert -> equal? "######" to :string first [######] + assert -> equal? "$" to :string first [$] + assert -> equal? "%" to :string first [%] + assert -> equal? "^" to :string first [^] + assert -> equal? "&" to :string first [&] + assert -> equal? "*" to :string first [*] + assert -> equal? "**" to :string first [**] + assert -> equal? "-" to :string first [-] + assert -> equal? "--" to :string first [--] + assert -> equal? "=" to :string first [=] + assert -> equal? "==" to :string first [==] + assert -> equal? "=~" to :string first [=~] + assert -> equal? "+" to :string first [+] + assert -> equal? "++" to :string first [++] + assert -> equal? "<" to :string first [<] + assert -> equal? ">" to :string first [>] + assert -> equal? "/" to :string first [/] + assert -> equal? "/%" to :string first [/%] + assert -> equal? "//" to :string first [//] + assert -> equal? ".." to :string first [..] + assert -> equal? "..." to :string first [...] + assert -> equal? "./" to :string first [./] + assert -> equal? ":=" to :string first [:=] + assert -> equal? "∅" to :string first [∅] + assert -> equal? "∞" to :string first [∞] + assert -> equal? "∑" to :string first [∑] + assert -> equal? "∏" to :string first [∏] + assert -> equal? "∩" to :string first [∩] + assert -> equal? "∪" to :string first [∪] + assert -> equal? "⊂" to :string first [⊂] + assert -> equal? "⊃" to :string first [⊃] + assert -> equal? "⊆" to :string first [⊆] + assert -> equal? "⊇" to :string first [⊇] + assert -> equal? "∈" to :string first [∈] + assert -> equal? "∉" to :string first [∉] + assert -> equal? "∧" to :string first [∧] + assert -> equal? "∨" to :string first [∨] + assert -> equal? "⊻" to :string first [⊻] + assert -> equal? "⊼" to :string first [⊼] + assert -> equal? "¬" to :string first [¬] + ] + section :type [ :integer >> "integer" :floating >> "floating" From 8a8944fd11d16751dff90107ab9d7e9238a376ef Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:41:22 -0300 Subject: [PATCH 103/114] [Types\to] test :quantity => :floating --- tests/unitt/lib/types/to.test.art | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index a3c51fa793..2430314111 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -866,6 +866,12 @@ for :floating [ section :null [] + section :quantity [ + 1`m >> 1.0 + 0`m >> 0.0 + (neg 1`m) >> (neg 1.0) + ] + section :rational [ 1:1 >> 1.0 0:1 >> 0.0 From 283100ff0b75f1418abe9d2223b9936766c5b730 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:41:57 -0300 Subject: [PATCH 104/114] [Types\to] test :quantity => :rational --- tests/unitt/lib/types/to.test.art | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 2430314111..252e469ce3 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1134,6 +1134,13 @@ for :rational [ section :logical [] section :null [] + + section :quantity [ + 1`m >> 1:1 + 0`m >> 0:1 + (neg 1`m) >> neg 1:1 + ] + section :rational [] section :string [] section :type [] From b18e6a20c341a80c08a158298e558d7d52e77593 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:45:22 -0300 Subject: [PATCH 105/114] [Types\to] test :quantity => :string --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 252e469ce3..93670de2ce 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1219,6 +1219,14 @@ for :string [ null >> "null" ] + section :quantity [ + 1`m >> "1 m" + 1`ohm >> "1 Ω" + 1`cm2 >> "1 cm²" + 1`kg.m >> "1 kg·m" + 1`kg/l >> "1 kg/L" + ] + section :rational [ 1:1 >> "1/1" 0:2 >> "0/1" From 5b60526afa2565f87390508ee88dae29ff3b6cae Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:46:59 -0300 Subject: [PATCH 106/114] [Types\to] test :quantity => :unit --- tests/unitt/lib/types/to.test.art | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 93670de2ce..307e480adb 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1517,6 +1517,31 @@ for :type [ ] +for :unit [ + + section :block [] + section :char [] + section :complex [] + section :floating [] + section :integer [] + section :logical [] + section :null [] + + section :quantity [ + 1`m >> `m + 1`ohm >> `ohm + 1`cm2 >> `cm2 + 1`kg.m >> `kg.m + 1`kg/l >> `kg/l + ] + + section :rational [] + section :string [] + section :type [] + section :version [] + +] + for :version [ section :block [] From 4abe5c58ef07e8aa164530ad594180b1ddbd833e Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:48:04 -0300 Subject: [PATCH 107/114] [Types\to] test :unit => :string --- tests/unitt/lib/types/to.test.art | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 307e480adb..6df0149f33 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1355,6 +1355,14 @@ for :string [ :type >> "type" ] + section :unit [ + `m >> "m" + `ohm >> "Ω" + `cm2 >> "cm²" + `kg.m >> "kg·m" + `kg/l >> "kg/L" + ] + section :version [ 1.2.3 >> "1.2.3" 1.2.3-pre >> "1.2.3-pre" From c735b36cf225882eb9a11ca011486c43d47ae0cd Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:52:56 -0300 Subject: [PATCH 108/114] [Types\to] test :error => :string --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 6df0149f33..341c2571ea 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1193,6 +1193,11 @@ for :string [ (#[name: "John"]) >> "[name:John]" ] + section :error [ + (try [throw "example"]) >> "Runtime Error" + (get try [throw "example"] 'message) >> "example" + ] + section :floating [ 1.0 >> "1.0" 0.0 >> "0.0" From 8e20d92e0a258cc201e3c246005ff33583870fc8 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:54:09 -0300 Subject: [PATCH 109/114] [Types\to] test :error => :literal --- tests/unitt/lib/types/to.test.art | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 341c2571ea..d9ec06b2c6 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -992,6 +992,12 @@ for :literal [ section :block [] section :char [] section :complex [] + + section :error [ + (try [throw "example"]) >> to :literal "Runtime Error" + (get try [throw "example"] 'message) >> 'example + ] + section :floating [] section :integer [] From c09bbc3d99ffd36a8e53f1761d5b3eca3071abf9 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:58:00 -0300 Subject: [PATCH 110/114] [Types\to] test :errorKind => :literal --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index d9ec06b2c6..e79fa8e780 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -996,6 +996,10 @@ for :literal [ section :error [ (try [throw "example"]) >> to :literal "Runtime Error" (get try [throw "example"] 'message) >> 'example + ] + + section :errorKind [ + (to :errorKind "OutOfBounds") >> 'OutOfBounds ] section :floating [] From 4753deecdb682c9baae5856704e9c6f40bd9438a Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sat, 1 Mar 2025 23:58:21 -0300 Subject: [PATCH 111/114] [Types\to] test :errorKind => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index e79fa8e780..5d38f065a0 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1208,6 +1208,10 @@ for :string [ (get try [throw "example"] 'message) >> "example" ] + section :errorKind [ + (to :errorKind "OutOfBounds") >> "OutOfBounds" + ] + section :floating [ 1.0 >> "1.0" 0.0 >> "0.0" From caa33e1a20ecd59c9f6259aebe802dcfdcf007ec Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sun, 2 Mar 2025 00:00:30 -0300 Subject: [PATCH 112/114] [Types\to] test :regex => :string --- tests/unitt/lib/types/to.test.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 5d38f065a0..d4065cea68 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1253,6 +1253,10 @@ for :string [ (neg 2:10) >> "-1/5" ] + section :regex [ + {/(.*)/} >> "(.*)" + ] + section :string [] test ":string => :symbol" [ From a97dd06d6f9f289e7c9572ee2d051c55cd48c726 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Sun, 2 Mar 2025 00:03:15 -0300 Subject: [PATCH 113/114] [Types\to] test :color => :string --- tests/unitt/lib/types/to.test.art | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index d4065cea68..32f480cf19 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -1195,6 +1195,11 @@ for :string [ 'Ϩ' >> "Ϩ" ; supports UNICODE ] + section :color [ + #white >> "#FFFFFF" + (to :color [15 45 87]) >> "#0F2D57" + ] + section :complex [ (to :complex [1 5]) >> "1.0+5.0i" ] From 57ea5219d4a7b4f238109bdaaa351c4b5dbe24b3 Mon Sep 17 00:00:00 2001 From: RickBarretto <78623871+RickBarretto@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:16:55 -0300 Subject: [PATCH 114/114] [Types\to] use `->>` instead of `>>` it's alias of `write` --- tests/unitt/lib/types/to.helper.art | 2 +- tests/unitt/lib/types/to.test.art | 1514 +++++++++++++-------------- 2 files changed, 758 insertions(+), 758 deletions(-) diff --git a/tests/unitt/lib/types/to.helper.art b/tests/unitt/lib/types/to.helper.art index 356cd4a970..520979e76e 100644 --- a/tests/unitt/lib/types/to.helper.art +++ b/tests/unitt/lib/types/to.helper.art @@ -21,4 +21,4 @@ pair: $[source target][ @[source target] ] -alias.infix {>>} 'pair \ No newline at end of file +alias.infix {->>} 'pair \ No newline at end of file diff --git a/tests/unitt/lib/types/to.test.art b/tests/unitt/lib/types/to.test.art index 32f480cf19..9bdc168b4b 100644 --- a/tests/unitt/lib/types/to.test.art +++ b/tests/unitt/lib/types/to.test.art @@ -49,7 +49,7 @@ for :binary [ section :block [] section :char [ - 'K' >> to :binary 75 + 'K' ->> to :binary 75 ] section :complex [] @@ -57,9 +57,9 @@ for :binary [ section :integer [ ; There is no such way of properly testing it right now? - 0 >> to :binary 0 ; Should be 0b0000 - 1 >> to :binary 1 ; Should be 0b0001 - (neg 1) >> to :binary neg 1 ; Should be 0b1111 + 0 ->> to :binary 0 ; Should be 0b0000 + 1 ->> to :binary 1 ; Should be 0b0001 + (neg 1) ->> to :binary neg 1 ; Should be 0b1111 ] section :logical [] @@ -77,7 +77,7 @@ for :block [ section :char [] section :complex [ - (to :complex [1 5]) >> [1.0 5.0] + (to :complex [1 5]) ->> [1.0 5.0] ] section :floating [] @@ -95,20 +95,20 @@ for :block [ section :range [ ; TODO: should this be the same as @ ; or shoud it return [1 10] or [1 10 2] - (1..10) >> [1 2 3 4 5 6 7 8 9 10] - (1.. .step: 2 10) >> [1 3 5 7 9] + (1..10) ->> [1 2 3 4 5 6 7 8 9 10] + (1.. .step: 2 10) ->> [1 3 5 7 9] ] section :rational [ - 1:2 >> [1 2] - 0:5 >> [0 1] - 2:10 >> [1 5] - (neg 1:5) >> @[neg 1 5] + 1:2 ->> [1 2] + 0:5 ->> [0 1] + 2:10 ->> [1 5] + (neg 1:5) ->> @[neg 1 5] ] section :string [ ; Parses it as an arturo code - "a 1 1.5" >> [a 1 1.5] + "a 1 1.5" ->> [a 1 1.5] ] section :type [] @@ -123,13 +123,13 @@ for :char [ section :complex [] section :floating [ - 75.0 >> 'K' - 50.0 >> '2' + 75.0 ->> 'K' + 50.0 ->> '2' ] section :integer [ - 75 >> 'K' - 1000 >> 'Ϩ' ; supports UNICODE + 75 ->> 'K' + 1000 ->> 'Ϩ' ; supports UNICODE ] section :logical [] @@ -137,8 +137,8 @@ for :char [ section :rational [] section :string [ - "K" >> 'K' - "Ϩ" >> 'Ϩ' + "K" ->> 'K' + "Ϩ" ->> 'Ϩ' ] section :type [] @@ -149,8 +149,8 @@ for :char [ for :color [ section :block [ - [255 255 255] >> #white - [255 255 255 255] >> #white + [255 255 255] ->> #white + [255 255 255 255] ->> #white ] test ":block => :color (hsv)" [ @@ -172,583 +172,583 @@ for :color [ section :rational [] section :string [ - "acidGreen" >> #acidGreen - "algaeGreen" >> #algaeGreen - "aliceBlue" >> #aliceBlue - "alienGray" >> #alienGray - "alienGreen" >> #alienGreen - "aloeVeraGreen" >> #aloeVeraGreen - "antiqueBronze" >> #antiqueBronze - "antiqueWhite" >> #antiqueWhite - "aquamarine" >> #aquamarine - "aquamarineStone" >> #aquamarineStone - "armyBrown" >> #armyBrown - "armyGreen" >> #armyGreen - "ashGray" >> #ashGray - "ashWhite" >> #ashWhite - "avocadoGreen" >> #avocadoGreen - "aztechPurple" >> #aztechPurple - "azure" >> #azure - "azureBlue" >> #azureBlue - "babyBlue" >> #babyBlue - "babyPink" >> #babyPink - "bakersBrown" >> #bakersBrown - "balloonBlue" >> #balloonBlue - "bananaYellow" >> #bananaYellow - "bashfulPink" >> #bashfulPink - "basketBallOrange" >> #basketBallOrange - "battleshipGray" >> #battleshipGray - "beanRed" >> #beanRed - "beer" >> #beer - "beetleGreen" >> #beetleGreen - "beeYellow" >> #beeYellow - "beige" >> #beige - "bisque" >> #bisque - "black" >> #black - "blackBean" >> #blackBean - "blackCat" >> #blackCat - "blackCow" >> #blackCow - "blackEel" >> #blackEel - "blanchedAlmond" >> #blanchedAlmond - "blonde" >> #blonde - "bloodNight" >> #bloodNight - "bloodRed" >> #bloodRed - "blossomPink" >> #blossomPink - "blue" >> #blue - "blueAngel" >> #blueAngel - "blueberryBlue" >> #blueberryBlue - "blueDiamond" >> #blueDiamond - "blueDress" >> #blueDress - "blueEyes" >> #blueEyes - "blueGray" >> #blueGray - "blueGreen" >> #blueGreen - "blueHosta" >> #blueHosta - "blueIvy" >> #blueIvy - "blueJay" >> #blueJay - "blueKoi" >> #blueKoi - "blueLagoon" >> #blueLagoon - "blueLotus" >> #blueLotus - "blueMossGreen" >> #blueMossGreen - "blueOrchid" >> #blueOrchid - "blueRibbon" >> #blueRibbon - "blueTurquoise" >> #blueTurquoise - "blueViolet" >> #blueViolet - "blueWhale" >> #blueWhale - "blueZircon" >> #blueZircon - "blush" >> #blush - "blushPink" >> #blushPink - "blushRed" >> #blushRed - "boldYellow" >> #boldYellow - "brass" >> #brass - "brightBlue" >> #brightBlue - "brightCyan" >> #brightCyan - "brightGold" >> #brightGold - "brightGreen" >> #brightGreen - "brightLilac" >> #brightLilac - "brightMaroon" >> #brightMaroon - "brightNavyBlue" >> #brightNavyBlue - "brightNeonPink" >> #brightNeonPink - "brightOrange" >> #brightOrange - "brightPurple" >> #brightPurple - "brightTurquoise" >> #brightTurquoise - "bronze" >> #bronze - "brown" >> #brown - "brownBear" >> #brownBear - "brownSand" >> #brownSand - "brownSugar" >> #brownSugar - "bulletShell" >> #bulletShell - "burgundy" >> #burgundy - "burlyWood" >> #burlyWood - "burntPink" >> #burntPink - "butterflyBlue" >> #butterflyBlue - "cadetBlue" >> #cadetBlue - "cadillacPink" >> #cadillacPink - "camelBrown" >> #camelBrown - "camouflageGreen" >> #camouflageGreen - "canaryBlue" >> #canaryBlue - "canaryYellow" >> #canaryYellow - "cantaloupe" >> #cantaloupe - "caramel" >> #caramel - "carbonGray" >> #carbonGray - "carbonRed" >> #carbonRed - "cardboardBrown" >> #cardboardBrown - "carnationPink" >> #carnationPink - "carrotOrange" >> #carrotOrange - "celeste" >> #celeste - "chameleonGreen" >> #chameleonGreen - "champagne" >> #champagne - "charcoal" >> #charcoal - "charcoalBlue" >> #charcoalBlue - "chartreuse" >> #chartreuse - "cherryRed" >> #cherryRed - "chestnut" >> #chestnut - "chestnutRed" >> #chestnutRed - "chilliPepper" >> #chilliPepper - "chocolate" >> #chocolate - "chocolateBrown" >> #chocolateBrown - "cinnamon" >> #cinnamon - "clemantisViolet" >> #clemantisViolet - "cloudyGray" >> #cloudyGray - "cloverGreen" >> #cloverGreen - "cobaltBlue" >> #cobaltBlue - "coffee" >> #coffee - "columbiaBlue" >> #columbiaBlue - "constructionConeOrange" >> #constructionConeOrange - "cookieBrown" >> #cookieBrown - "copper" >> #copper - "copperRed" >> #copperRed - "coral" >> #coral - "coralBlue" >> #coralBlue - "cornflowerBlue" >> #cornflowerBlue - "cornsilk" >> #cornsilk - "cornYellow" >> #cornYellow - "cotton" >> #cotton - "cottonCandy" >> #cottonCandy - "cranberry" >> #cranberry - "cream" >> #cream - "crimson" >> #crimson - "crimsonPurple" >> #crimsonPurple - "crocusPurple" >> #crocusPurple - "crystalBlue" >> #crystalBlue - "cyan" >> #cyan - "cyanOpaque" >> #cyanOpaque - "darkBisque" >> #darkBisque - "darkBlonde" >> #darkBlonde - "darkBlue" >> #darkBlue - "darkBlueGrey" >> #darkBlueGrey - "darkBrown" >> #darkBrown - "darkCarnationPink" >> #darkCarnationPink - "darkCoffee" >> #darkCoffee - "darkCyan" >> #darkCyan - "darkForestGreen" >> #darkForestGreen - "darkGoldenRod" >> #darkGoldenRod - "darkGray" >> #darkGray - "darkGray" >> #darkGray - "darkGreen" >> #darkGreen - "darkHotPink" >> #darkHotPink - "darkKhaki" >> #darkKhaki - "darkLimeGreen" >> #darkLimeGreen - "darkMagenta" >> #darkMagenta - "darkMint" >> #darkMint - "darkMoccasin" >> #darkMoccasin - "darkOliveGreen" >> #darkOliveGreen - "darkOrange" >> #darkOrange - "darkOrchid" >> #darkOrchid - "darkPink" >> #darkPink - "darkPurple" >> #darkPurple - "darkRaspberry" >> #darkRaspberry - "darkRed" >> #darkRed - "darkSalmon" >> #darkSalmon - "darkSeaGreen" >> #darkSeaGreen - "darkSienna" >> #darkSienna - "darkSlate" >> #darkSlate - "darkSlateBlue" >> #darkSlateBlue - "darkSlateGray" >> #darkSlateGray - "darkTurquoise" >> #darkTurquoise - "darkViolet" >> #darkViolet - "darkYellow" >> #darkYellow - "daySkyBlue" >> #daySkyBlue - "deepEmeraldGreen" >> #deepEmeraldGreen - "deepMauve" >> #deepMauve - "deepPeach" >> #deepPeach - "deepPeriwinkle" >> #deepPeriwinkle - "deepPink" >> #deepPink - "deepPurple" >> #deepPurple - "deepRed" >> #deepRed - "deepRose" >> #deepRose - "deepSea" >> #deepSea - "deepSeaBlue" >> #deepSeaBlue - "deepSeaGreen" >> #deepSeaGreen - "deepSkyBlue" >> #deepSkyBlue - "deepTeal" >> #deepTeal - "deepTurquoise" >> #deepTurquoise - "deepYellow" >> #deepYellow - "deerBrown" >> #deerBrown - "denimBlue" >> #denimBlue - "denimDarkBlue" >> #denimDarkBlue - "desertSand" >> #desertSand - "dimGray" >> #dimGray - "dimorphothecaMagenta" >> #dimorphothecaMagenta - "dinosaurGreen" >> #dinosaurGreen - "dodgerBlue" >> #dodgerBlue - "dollarBillGreen" >> #dollarBillGreen - "donutPink" >> #donutPink - "dragonGreen" >> #dragonGreen - "dullGreenYellow" >> #dullGreenYellow - "dullPurple" >> #dullPurple - "dullSeaGreen" >> #dullSeaGreen - "earthBlue" >> #earthBlue - "earthGreen" >> #earthGreen - "eggplant" >> #eggplant - "eggShell" >> #eggShell - "electricBlue" >> #electricBlue - "emerald" >> #emerald - "emeraldGreen" >> #emeraldGreen - "fallForestGreen" >> #fallForestGreen - "fallLeafBrown" >> #fallLeafBrown - "fernGreen" >> #fernGreen - "ferrariRed" >> #ferrariRed - "fireBrick" >> #fireBrick - "fireEngineRed" >> #fireEngineRed - "flamingoPink" >> #flamingoPink - "floralWhite" >> #floralWhite - "forestGreen" >> #forestGreen - "frenchLilac" >> #frenchLilac - "frogGreen" >> #frogGreen - "gainsboro" >> #gainsboro - "ghostWhite" >> #ghostWhite - "gingerBrown" >> #gingerBrown - "glacialBlueIce" >> #glacialBlueIce - "gold" >> #gold - "goldenBlonde" >> #goldenBlonde - "goldenBrown" >> #goldenBrown - "goldenRod" >> #goldenRod - "goldenSilk" >> #goldenSilk - "goldenYellow" >> #goldenYellow - "granite" >> #granite - "grape" >> #grape - "grapefruit" >> #grapefruit - "gray" >> #gray - "grayBrown" >> #grayBrown - "grayCloud" >> #grayCloud - "grayDolphin" >> #grayDolphin - "grayGoose" >> #grayGoose - "grayishTurquoise" >> #grayishTurquoise - "grayWolf" >> #grayWolf - "green" >> #green - "greenApple" >> #greenApple - "greenishBlue" >> #greenishBlue - "greenOnion" >> #greenOnion - "greenPeas" >> #greenPeas - "greenPepper" >> #greenPepper - "greenSnake" >> #greenSnake - "greenThumb" >> #greenThumb - "greenYellow" >> #greenYellow - "gulfBlue" >> #gulfBlue - "gunmetal" >> #gunmetal - "halloweenOrange" >> #halloweenOrange - "harvestGold" >> #harvestGold - "hazel" >> #hazel - "hazelGreen" >> #hazelGreen - "heavenlyBlue" >> #heavenlyBlue - "heliotropePurple" >> #heliotropePurple - "honeyDew" >> #honeyDew - "hotDeepPink" >> #hotDeepPink - "hotPink" >> #hotPink - "hummingbirdGreen" >> #hummingbirdGreen - "iceberg" >> #iceberg - "iguanaGreen" >> #iguanaGreen - "indianRed" >> #indianRed - "indianSaffron" >> #indianSaffron - "indigo" >> #indigo - "iridium" >> #iridium - "ironGray" >> #ironGray - "ivory" >> #ivory - "jade" >> #jade - "jadeGreen" >> #jadeGreen - "jasminePurple" >> #jasminePurple - "jeansBlue" >> #jeansBlue - "jellyfish" >> #jellyfish - "jetGray" >> #jetGray - "jungleGreen" >> #jungleGreen - "kellyGreen" >> #kellyGreen - "khaki" >> #khaki - "khakiRose" >> #khakiRose - "lapisBlue" >> #lapisBlue - "lavaRed" >> #lavaRed - "lavender" >> #lavender - "lavenderBlue" >> #lavenderBlue - "lavenderBlush" >> #lavenderBlush - "lavenderPinocchio" >> #lavenderPinocchio - "lavenderPurple" >> #lavenderPurple - "lawnGreen" >> #lawnGreen - "lemonChiffon" >> #lemonChiffon - "lightAquamarine" >> #lightAquamarine - "lightBlack" >> #lightBlack - "lightBlue" >> #lightBlue - "lightBrown" >> #lightBrown - "lightCopper" >> #lightCopper - "lightCoral" >> #lightCoral - "lightCyan" >> #lightCyan - "lightDayBlue" >> #lightDayBlue - "lightFrenchBeige" >> #lightFrenchBeige - "lightGold" >> #lightGold - "lightGoldenRodYellow" >> #lightGoldenRodYellow - "lightGray" >> #lightGray - "lightGreen" >> #lightGreen - "lightJade" >> #lightJade - "lightOrange" >> #lightOrange - "lightPink" >> #lightPink - "lightPurple" >> #lightPurple - "lightPurpleBlue" >> #lightPurpleBlue - "lightRed" >> #lightRed - "lightRose" >> #lightRose - "lightRoseGreen" >> #lightRoseGreen - "lightSalmon" >> #lightSalmon - "lightSalmonRose" >> #lightSalmonRose - "lightSeaGreen" >> #lightSeaGreen - "lightSkyBlue" >> #lightSkyBlue - "lightSlate" >> #lightSlate - "lightSlateBlue" >> #lightSlateBlue - "lightSlateGray" >> #lightSlateGray - "lightSteelBlue" >> #lightSteelBlue - "lightWhite" >> #lightWhite - "lightYellow" >> #lightYellow - "lilac" >> #lilac - "lime" >> #lime - "limeGreen" >> #limeGreen - "limeMintGreen" >> #limeMintGreen - "linen" >> #linen - "lipstickPink" >> #lipstickPink - "lovelyPurple" >> #lovelyPurple - "loveRed" >> #loveRed - "macaroniAndCheese" >> #macaroniAndCheese - "macawBlueGreen" >> #macawBlueGreen - "magenta" >> #magenta - "magicMint" >> #magicMint - "mahogany" >> #mahogany - "mangoOrange" >> #mangoOrange - "marbleBlue" >> #marbleBlue - "maroon" >> #maroon - "mauve" >> #mauve - "mauveTaupe" >> #mauveTaupe - "mediumAquaMarine" >> #mediumAquaMarine - "mediumBlue" >> #mediumBlue - "mediumForestGreen" >> #mediumForestGreen - "mediumOrchid" >> #mediumOrchid - "mediumPurple" >> #mediumPurple - "mediumSeaGreen" >> #mediumSeaGreen - "mediumSlateBlue" >> #mediumSlateBlue - "mediumSpringGreen" >> #mediumSpringGreen - "mediumTeal" >> #mediumTeal - "mediumTurquoise" >> #mediumTurquoise - "mediumVioletRed" >> #mediumVioletRed - "metallicGold" >> #metallicGold - "metallicSilver" >> #metallicSilver - "middayBlue" >> #middayBlue - "midnight" >> #midnight - "midnightBlue" >> #midnightBlue - "milkChocolate" >> #milkChocolate - "milkWhite" >> #milkWhite - "mint" >> #mint - "mintCream" >> #mintCream - "mintGreen" >> #mintGreen - "mistBlue" >> #mistBlue - "mistyRose" >> #mistyRose - "moccasin" >> #moccasin - "mocha" >> #mocha - "mustardYellow" >> #mustardYellow - "navajoWhite" >> #navajoWhite - "navy" >> #navy - "nebulaGreen" >> #nebulaGreen - "neonBlue" >> #neonBlue - "neonGreen" >> #neonGreen - "neonHotPink" >> #neonHotPink - "neonOrange" >> #neonOrange - "neonPink" >> #neonPink - "neonPurple" >> #neonPurple - "neonRed" >> #neonRed - "neonYellow" >> #neonYellow - "neonYellowGreen" >> #neonYellowGreen - "newMidnightBlue" >> #newMidnightBlue - "night" >> #night - "nightBlue" >> #nightBlue - "northernLightsBlue" >> #northernLightsBlue - "oakBrown" >> #oakBrown - "oceanBlue" >> #oceanBlue - "offWhite" >> #offWhite - "oil" >> #oil - "oldBurgundy" >> #oldBurgundy - "oldLace" >> #oldLace - "olive" >> #olive - "oliveDrab" >> #oliveDrab - "oliveGreen" >> #oliveGreen - "orange" >> #orange - "orangeGold" >> #orangeGold - "orangeRed" >> #orangeRed - "orangeSalmon" >> #orangeSalmon - "orangeYellow" >> #orangeYellow - "orchid" >> #orchid - "orchidPurple" >> #orchidPurple - "organicBrown" >> #organicBrown - "paleBlueLily" >> #paleBlueLily - "paleGoldenRod" >> #paleGoldenRod - "paleGreen" >> #paleGreen - "paleLilac" >> #paleLilac - "paleSilver" >> #paleSilver - "paleTurquoise" >> #paleTurquoise - "paleVioletRed" >> #paleVioletRed - "papayaOrange" >> #papayaOrange - "papayaWhip" >> #papayaWhip - "parchment" >> #parchment - "parrotGreen" >> #parrotGreen - "pastelBlue" >> #pastelBlue - "pastelGreen" >> #pastelGreen - "pastelLightBlue" >> #pastelLightBlue - "pastelOrange" >> #pastelOrange - "pastelPink" >> #pastelPink - "pastelPurple" >> #pastelPurple - "pastelRed" >> #pastelRed - "pastelViolet" >> #pastelViolet - "pastelYellow" >> #pastelYellow - "peach" >> #peach - "peachPuff" >> #peachPuff - "peaGreen" >> #peaGreen - "pearl" >> #pearl - "periwinkle" >> #periwinkle - "periwinklePink" >> #periwinklePink - "periwinklePurple" >> #periwinklePurple - "peru" >> #peru - "pigPink" >> #pigPink - "pineGreen" >> #pineGreen - "pink" >> #pink - "pinkBrown" >> #pinkBrown - "pinkBubbleGum" >> #pinkBubbleGum - "pinkCoral" >> #pinkCoral - "pinkCupcake" >> #pinkCupcake - "pinkDaisy" >> #pinkDaisy - "pinkLemonade" >> #pinkLemonade - "pinkPlum" >> #pinkPlum - "pinkRose" >> #pinkRose - "pinkViolet" >> #pinkViolet - "pistachioGreen" >> #pistachioGreen - "platinum" >> #platinum - "platinumGray" >> #platinumGray - "platinumSilver" >> #platinumSilver - "plum" >> #plum - "plumPie" >> #plumPie - "plumPurple" >> #plumPurple - "plumVelvet" >> #plumVelvet - "powderBlue" >> #powderBlue - "puce" >> #puce - "pumpkinOrange" >> #pumpkinOrange - "purple" >> #purple - "purpleAmethyst" >> #purpleAmethyst - "purpleDaffodil" >> #purpleDaffodil - "purpleDragon" >> #purpleDragon - "purpleFlower" >> #purpleFlower - "purpleHaze" >> #purpleHaze - "purpleIris" >> #purpleIris - "purpleJam" >> #purpleJam - "purpleLily" >> #purpleLily - "purpleMaroon" >> #purpleMaroon - "purpleMimosa" >> #purpleMimosa - "purpleMonster" >> #purpleMonster - "purpleNavy" >> #purpleNavy - "purplePink" >> #purplePink - "purplePlum" >> #purplePlum - "purpleSageBush" >> #purpleSageBush - "purpleThistle" >> #purpleThistle - "purpleViolet" >> #purpleViolet - "raspberry" >> #raspberry - "raspberryPurple" >> #raspberryPurple - "ratGray" >> #ratGray - "rebeccaPurple" >> #rebeccaPurple - "red" >> #red - "redBlood" >> #redBlood - "redDirt" >> #redDirt - "redFox" >> #redFox - "rice" >> #rice - "richLilac" >> #richLilac - "robinEggBlue" >> #robinEggBlue - "roguePink" >> #roguePink - "romanSilver" >> #romanSilver - "rose" >> #rose - "roseDust" >> #roseDust - "roseGold" >> #roseGold - "roseRed" >> #roseRed - "rosyBrown" >> #rosyBrown - "rosyFinch" >> #rosyFinch - "rosyPink" >> #rosyPink - "royalBlue" >> #royalBlue - "rubberDuckyYellow" >> #rubberDuckyYellow - "rubyRed" >> #rubyRed - "rust" >> #rust - "saddleBrown" >> #saddleBrown - "saffron" >> #saffron - "saffronRed" >> #saffronRed - "sage" >> #sage - "sageGreen" >> #sageGreen - "saladGreen" >> #saladGreen - "salmon" >> #salmon - "sand" >> #sand - "sandstone" >> #sandstone - "sandyBrown" >> #sandyBrown - "sangria" >> #sangria - "sapphireBlue" >> #sapphireBlue - "scarlet" >> #scarlet - "schoolBusYellow" >> #schoolBusYellow - "seaBlue" >> #seaBlue - "seafoamGreen" >> #seafoamGreen - "seaGreen" >> #seaGreen - "seaShell" >> #seaShell - "seaTurtleGreen" >> #seaTurtleGreen - "seaweedGreen" >> #seaweedGreen - "sedona" >> #sedona - "sepia" >> #sepia - "sepiaBrown" >> #sepiaBrown - "shamrockGreen" >> #shamrockGreen - "shockingOrange" >> #shockingOrange - "sienna" >> #sienna - "silkBlue" >> #silkBlue - "silver" >> #silver - "silverPink" >> #silverPink - "skyBlue" >> #skyBlue - "skyBlueDress" >> #skyBlueDress - "slateBlue" >> #slateBlue - "slateBlueGrey" >> #slateBlueGrey - "slateGraniteGray" >> #slateGraniteGray - "slateGray" >> #slateGray - "slimeGreen" >> #slimeGreen - "smokeyGray" >> #smokeyGray - "snow" >> #snow - "softIvory" >> #softIvory - "sonicSilver" >> #sonicSilver - "springGreen" >> #springGreen - "steelBlue" >> #steelBlue - "stoplightGoGreen" >> #stoplightGoGreen - "sunriseOrange" >> #sunriseOrange - "sunYellow" >> #sunYellow - "tan" >> #tan - "tanBrown" >> #tanBrown - "tangerine" >> #tangerine - "taupe" >> #taupe - "teaGreen" >> #teaGreen - "teal" >> #teal - "thistle" >> #thistle - "tiffanyBlue" >> #tiffanyBlue - "tigerOrange" >> #tigerOrange - "tomato" >> #tomato - "tomatoSauceRed" >> #tomatoSauceRed - "tronBlue" >> #tronBlue - "tulipPink" >> #tulipPink - "turquoise" >> #turquoise - "tyrianPurple" >> #tyrianPurple - "unbleachedSilk" >> #unbleachedSilk - "valentineRed" >> #valentineRed - "vampireGray" >> #vampireGray - "vanilla" >> #vanilla - "velvetMaroon" >> #velvetMaroon - "venomGreen" >> #venomGreen - "violaPurple" >> #violaPurple - "violet" >> #violet - "violetRed" >> #violetRed - "water" >> #water - "watermelonPink" >> #watermelonPink - "westernCharcoal" >> #westernCharcoal - "wheat" >> #wheat - "white" >> #white - "whiteChocolate" >> #whiteChocolate - "whiteSmoke" >> #whiteSmoke - "windowsBlue" >> #windowsBlue - "wineRed" >> #wineRed - "wisteriaPurple" >> #wisteriaPurple - "wood" >> #wood - "yellow" >> #yellow - "yellowGreen" >> #yellowGreen - "yellowGreenGrosbeak" >> #yellowGreenGrosbeak - "yellowLawnGreen" >> #yellowLawnGreen - "zombieGreen" >> #zombieGreen + "acidGreen" ->> #acidGreen + "algaeGreen" ->> #algaeGreen + "aliceBlue" ->> #aliceBlue + "alienGray" ->> #alienGray + "alienGreen" ->> #alienGreen + "aloeVeraGreen" ->> #aloeVeraGreen + "antiqueBronze" ->> #antiqueBronze + "antiqueWhite" ->> #antiqueWhite + "aquamarine" ->> #aquamarine + "aquamarineStone" ->> #aquamarineStone + "armyBrown" ->> #armyBrown + "armyGreen" ->> #armyGreen + "ashGray" ->> #ashGray + "ashWhite" ->> #ashWhite + "avocadoGreen" ->> #avocadoGreen + "aztechPurple" ->> #aztechPurple + "azure" ->> #azure + "azureBlue" ->> #azureBlue + "babyBlue" ->> #babyBlue + "babyPink" ->> #babyPink + "bakersBrown" ->> #bakersBrown + "balloonBlue" ->> #balloonBlue + "bananaYellow" ->> #bananaYellow + "bashfulPink" ->> #bashfulPink + "basketBallOrange" ->> #basketBallOrange + "battleshipGray" ->> #battleshipGray + "beanRed" ->> #beanRed + "beer" ->> #beer + "beetleGreen" ->> #beetleGreen + "beeYellow" ->> #beeYellow + "beige" ->> #beige + "bisque" ->> #bisque + "black" ->> #black + "blackBean" ->> #blackBean + "blackCat" ->> #blackCat + "blackCow" ->> #blackCow + "blackEel" ->> #blackEel + "blanchedAlmond" ->> #blanchedAlmond + "blonde" ->> #blonde + "bloodNight" ->> #bloodNight + "bloodRed" ->> #bloodRed + "blossomPink" ->> #blossomPink + "blue" ->> #blue + "blueAngel" ->> #blueAngel + "blueberryBlue" ->> #blueberryBlue + "blueDiamond" ->> #blueDiamond + "blueDress" ->> #blueDress + "blueEyes" ->> #blueEyes + "blueGray" ->> #blueGray + "blueGreen" ->> #blueGreen + "blueHosta" ->> #blueHosta + "blueIvy" ->> #blueIvy + "blueJay" ->> #blueJay + "blueKoi" ->> #blueKoi + "blueLagoon" ->> #blueLagoon + "blueLotus" ->> #blueLotus + "blueMossGreen" ->> #blueMossGreen + "blueOrchid" ->> #blueOrchid + "blueRibbon" ->> #blueRibbon + "blueTurquoise" ->> #blueTurquoise + "blueViolet" ->> #blueViolet + "blueWhale" ->> #blueWhale + "blueZircon" ->> #blueZircon + "blush" ->> #blush + "blushPink" ->> #blushPink + "blushRed" ->> #blushRed + "boldYellow" ->> #boldYellow + "brass" ->> #brass + "brightBlue" ->> #brightBlue + "brightCyan" ->> #brightCyan + "brightGold" ->> #brightGold + "brightGreen" ->> #brightGreen + "brightLilac" ->> #brightLilac + "brightMaroon" ->> #brightMaroon + "brightNavyBlue" ->> #brightNavyBlue + "brightNeonPink" ->> #brightNeonPink + "brightOrange" ->> #brightOrange + "brightPurple" ->> #brightPurple + "brightTurquoise" ->> #brightTurquoise + "bronze" ->> #bronze + "brown" ->> #brown + "brownBear" ->> #brownBear + "brownSand" ->> #brownSand + "brownSugar" ->> #brownSugar + "bulletShell" ->> #bulletShell + "burgundy" ->> #burgundy + "burlyWood" ->> #burlyWood + "burntPink" ->> #burntPink + "butterflyBlue" ->> #butterflyBlue + "cadetBlue" ->> #cadetBlue + "cadillacPink" ->> #cadillacPink + "camelBrown" ->> #camelBrown + "camouflageGreen" ->> #camouflageGreen + "canaryBlue" ->> #canaryBlue + "canaryYellow" ->> #canaryYellow + "cantaloupe" ->> #cantaloupe + "caramel" ->> #caramel + "carbonGray" ->> #carbonGray + "carbonRed" ->> #carbonRed + "cardboardBrown" ->> #cardboardBrown + "carnationPink" ->> #carnationPink + "carrotOrange" ->> #carrotOrange + "celeste" ->> #celeste + "chameleonGreen" ->> #chameleonGreen + "champagne" ->> #champagne + "charcoal" ->> #charcoal + "charcoalBlue" ->> #charcoalBlue + "chartreuse" ->> #chartreuse + "cherryRed" ->> #cherryRed + "chestnut" ->> #chestnut + "chestnutRed" ->> #chestnutRed + "chilliPepper" ->> #chilliPepper + "chocolate" ->> #chocolate + "chocolateBrown" ->> #chocolateBrown + "cinnamon" ->> #cinnamon + "clemantisViolet" ->> #clemantisViolet + "cloudyGray" ->> #cloudyGray + "cloverGreen" ->> #cloverGreen + "cobaltBlue" ->> #cobaltBlue + "coffee" ->> #coffee + "columbiaBlue" ->> #columbiaBlue + "constructionConeOrange" ->> #constructionConeOrange + "cookieBrown" ->> #cookieBrown + "copper" ->> #copper + "copperRed" ->> #copperRed + "coral" ->> #coral + "coralBlue" ->> #coralBlue + "cornflowerBlue" ->> #cornflowerBlue + "cornsilk" ->> #cornsilk + "cornYellow" ->> #cornYellow + "cotton" ->> #cotton + "cottonCandy" ->> #cottonCandy + "cranberry" ->> #cranberry + "cream" ->> #cream + "crimson" ->> #crimson + "crimsonPurple" ->> #crimsonPurple + "crocusPurple" ->> #crocusPurple + "crystalBlue" ->> #crystalBlue + "cyan" ->> #cyan + "cyanOpaque" ->> #cyanOpaque + "darkBisque" ->> #darkBisque + "darkBlonde" ->> #darkBlonde + "darkBlue" ->> #darkBlue + "darkBlueGrey" ->> #darkBlueGrey + "darkBrown" ->> #darkBrown + "darkCarnationPink" ->> #darkCarnationPink + "darkCoffee" ->> #darkCoffee + "darkCyan" ->> #darkCyan + "darkForestGreen" ->> #darkForestGreen + "darkGoldenRod" ->> #darkGoldenRod + "darkGray" ->> #darkGray + "darkGray" ->> #darkGray + "darkGreen" ->> #darkGreen + "darkHotPink" ->> #darkHotPink + "darkKhaki" ->> #darkKhaki + "darkLimeGreen" ->> #darkLimeGreen + "darkMagenta" ->> #darkMagenta + "darkMint" ->> #darkMint + "darkMoccasin" ->> #darkMoccasin + "darkOliveGreen" ->> #darkOliveGreen + "darkOrange" ->> #darkOrange + "darkOrchid" ->> #darkOrchid + "darkPink" ->> #darkPink + "darkPurple" ->> #darkPurple + "darkRaspberry" ->> #darkRaspberry + "darkRed" ->> #darkRed + "darkSalmon" ->> #darkSalmon + "darkSeaGreen" ->> #darkSeaGreen + "darkSienna" ->> #darkSienna + "darkSlate" ->> #darkSlate + "darkSlateBlue" ->> #darkSlateBlue + "darkSlateGray" ->> #darkSlateGray + "darkTurquoise" ->> #darkTurquoise + "darkViolet" ->> #darkViolet + "darkYellow" ->> #darkYellow + "daySkyBlue" ->> #daySkyBlue + "deepEmeraldGreen" ->> #deepEmeraldGreen + "deepMauve" ->> #deepMauve + "deepPeach" ->> #deepPeach + "deepPeriwinkle" ->> #deepPeriwinkle + "deepPink" ->> #deepPink + "deepPurple" ->> #deepPurple + "deepRed" ->> #deepRed + "deepRose" ->> #deepRose + "deepSea" ->> #deepSea + "deepSeaBlue" ->> #deepSeaBlue + "deepSeaGreen" ->> #deepSeaGreen + "deepSkyBlue" ->> #deepSkyBlue + "deepTeal" ->> #deepTeal + "deepTurquoise" ->> #deepTurquoise + "deepYellow" ->> #deepYellow + "deerBrown" ->> #deerBrown + "denimBlue" ->> #denimBlue + "denimDarkBlue" ->> #denimDarkBlue + "desertSand" ->> #desertSand + "dimGray" ->> #dimGray + "dimorphothecaMagenta" ->> #dimorphothecaMagenta + "dinosaurGreen" ->> #dinosaurGreen + "dodgerBlue" ->> #dodgerBlue + "dollarBillGreen" ->> #dollarBillGreen + "donutPink" ->> #donutPink + "dragonGreen" ->> #dragonGreen + "dullGreenYellow" ->> #dullGreenYellow + "dullPurple" ->> #dullPurple + "dullSeaGreen" ->> #dullSeaGreen + "earthBlue" ->> #earthBlue + "earthGreen" ->> #earthGreen + "eggplant" ->> #eggplant + "eggShell" ->> #eggShell + "electricBlue" ->> #electricBlue + "emerald" ->> #emerald + "emeraldGreen" ->> #emeraldGreen + "fallForestGreen" ->> #fallForestGreen + "fallLeafBrown" ->> #fallLeafBrown + "fernGreen" ->> #fernGreen + "ferrariRed" ->> #ferrariRed + "fireBrick" ->> #fireBrick + "fireEngineRed" ->> #fireEngineRed + "flamingoPink" ->> #flamingoPink + "floralWhite" ->> #floralWhite + "forestGreen" ->> #forestGreen + "frenchLilac" ->> #frenchLilac + "frogGreen" ->> #frogGreen + "gainsboro" ->> #gainsboro + "ghostWhite" ->> #ghostWhite + "gingerBrown" ->> #gingerBrown + "glacialBlueIce" ->> #glacialBlueIce + "gold" ->> #gold + "goldenBlonde" ->> #goldenBlonde + "goldenBrown" ->> #goldenBrown + "goldenRod" ->> #goldenRod + "goldenSilk" ->> #goldenSilk + "goldenYellow" ->> #goldenYellow + "granite" ->> #granite + "grape" ->> #grape + "grapefruit" ->> #grapefruit + "gray" ->> #gray + "grayBrown" ->> #grayBrown + "grayCloud" ->> #grayCloud + "grayDolphin" ->> #grayDolphin + "grayGoose" ->> #grayGoose + "grayishTurquoise" ->> #grayishTurquoise + "grayWolf" ->> #grayWolf + "green" ->> #green + "greenApple" ->> #greenApple + "greenishBlue" ->> #greenishBlue + "greenOnion" ->> #greenOnion + "greenPeas" ->> #greenPeas + "greenPepper" ->> #greenPepper + "greenSnake" ->> #greenSnake + "greenThumb" ->> #greenThumb + "greenYellow" ->> #greenYellow + "gulfBlue" ->> #gulfBlue + "gunmetal" ->> #gunmetal + "halloweenOrange" ->> #halloweenOrange + "harvestGold" ->> #harvestGold + "hazel" ->> #hazel + "hazelGreen" ->> #hazelGreen + "heavenlyBlue" ->> #heavenlyBlue + "heliotropePurple" ->> #heliotropePurple + "honeyDew" ->> #honeyDew + "hotDeepPink" ->> #hotDeepPink + "hotPink" ->> #hotPink + "hummingbirdGreen" ->> #hummingbirdGreen + "iceberg" ->> #iceberg + "iguanaGreen" ->> #iguanaGreen + "indianRed" ->> #indianRed + "indianSaffron" ->> #indianSaffron + "indigo" ->> #indigo + "iridium" ->> #iridium + "ironGray" ->> #ironGray + "ivory" ->> #ivory + "jade" ->> #jade + "jadeGreen" ->> #jadeGreen + "jasminePurple" ->> #jasminePurple + "jeansBlue" ->> #jeansBlue + "jellyfish" ->> #jellyfish + "jetGray" ->> #jetGray + "jungleGreen" ->> #jungleGreen + "kellyGreen" ->> #kellyGreen + "khaki" ->> #khaki + "khakiRose" ->> #khakiRose + "lapisBlue" ->> #lapisBlue + "lavaRed" ->> #lavaRed + "lavender" ->> #lavender + "lavenderBlue" ->> #lavenderBlue + "lavenderBlush" ->> #lavenderBlush + "lavenderPinocchio" ->> #lavenderPinocchio + "lavenderPurple" ->> #lavenderPurple + "lawnGreen" ->> #lawnGreen + "lemonChiffon" ->> #lemonChiffon + "lightAquamarine" ->> #lightAquamarine + "lightBlack" ->> #lightBlack + "lightBlue" ->> #lightBlue + "lightBrown" ->> #lightBrown + "lightCopper" ->> #lightCopper + "lightCoral" ->> #lightCoral + "lightCyan" ->> #lightCyan + "lightDayBlue" ->> #lightDayBlue + "lightFrenchBeige" ->> #lightFrenchBeige + "lightGold" ->> #lightGold + "lightGoldenRodYellow" ->> #lightGoldenRodYellow + "lightGray" ->> #lightGray + "lightGreen" ->> #lightGreen + "lightJade" ->> #lightJade + "lightOrange" ->> #lightOrange + "lightPink" ->> #lightPink + "lightPurple" ->> #lightPurple + "lightPurpleBlue" ->> #lightPurpleBlue + "lightRed" ->> #lightRed + "lightRose" ->> #lightRose + "lightRoseGreen" ->> #lightRoseGreen + "lightSalmon" ->> #lightSalmon + "lightSalmonRose" ->> #lightSalmonRose + "lightSeaGreen" ->> #lightSeaGreen + "lightSkyBlue" ->> #lightSkyBlue + "lightSlate" ->> #lightSlate + "lightSlateBlue" ->> #lightSlateBlue + "lightSlateGray" ->> #lightSlateGray + "lightSteelBlue" ->> #lightSteelBlue + "lightWhite" ->> #lightWhite + "lightYellow" ->> #lightYellow + "lilac" ->> #lilac + "lime" ->> #lime + "limeGreen" ->> #limeGreen + "limeMintGreen" ->> #limeMintGreen + "linen" ->> #linen + "lipstickPink" ->> #lipstickPink + "lovelyPurple" ->> #lovelyPurple + "loveRed" ->> #loveRed + "macaroniAndCheese" ->> #macaroniAndCheese + "macawBlueGreen" ->> #macawBlueGreen + "magenta" ->> #magenta + "magicMint" ->> #magicMint + "mahogany" ->> #mahogany + "mangoOrange" ->> #mangoOrange + "marbleBlue" ->> #marbleBlue + "maroon" ->> #maroon + "mauve" ->> #mauve + "mauveTaupe" ->> #mauveTaupe + "mediumAquaMarine" ->> #mediumAquaMarine + "mediumBlue" ->> #mediumBlue + "mediumForestGreen" ->> #mediumForestGreen + "mediumOrchid" ->> #mediumOrchid + "mediumPurple" ->> #mediumPurple + "mediumSeaGreen" ->> #mediumSeaGreen + "mediumSlateBlue" ->> #mediumSlateBlue + "mediumSpringGreen" ->> #mediumSpringGreen + "mediumTeal" ->> #mediumTeal + "mediumTurquoise" ->> #mediumTurquoise + "mediumVioletRed" ->> #mediumVioletRed + "metallicGold" ->> #metallicGold + "metallicSilver" ->> #metallicSilver + "middayBlue" ->> #middayBlue + "midnight" ->> #midnight + "midnightBlue" ->> #midnightBlue + "milkChocolate" ->> #milkChocolate + "milkWhite" ->> #milkWhite + "mint" ->> #mint + "mintCream" ->> #mintCream + "mintGreen" ->> #mintGreen + "mistBlue" ->> #mistBlue + "mistyRose" ->> #mistyRose + "moccasin" ->> #moccasin + "mocha" ->> #mocha + "mustardYellow" ->> #mustardYellow + "navajoWhite" ->> #navajoWhite + "navy" ->> #navy + "nebulaGreen" ->> #nebulaGreen + "neonBlue" ->> #neonBlue + "neonGreen" ->> #neonGreen + "neonHotPink" ->> #neonHotPink + "neonOrange" ->> #neonOrange + "neonPink" ->> #neonPink + "neonPurple" ->> #neonPurple + "neonRed" ->> #neonRed + "neonYellow" ->> #neonYellow + "neonYellowGreen" ->> #neonYellowGreen + "newMidnightBlue" ->> #newMidnightBlue + "night" ->> #night + "nightBlue" ->> #nightBlue + "northernLightsBlue" ->> #northernLightsBlue + "oakBrown" ->> #oakBrown + "oceanBlue" ->> #oceanBlue + "offWhite" ->> #offWhite + "oil" ->> #oil + "oldBurgundy" ->> #oldBurgundy + "oldLace" ->> #oldLace + "olive" ->> #olive + "oliveDrab" ->> #oliveDrab + "oliveGreen" ->> #oliveGreen + "orange" ->> #orange + "orangeGold" ->> #orangeGold + "orangeRed" ->> #orangeRed + "orangeSalmon" ->> #orangeSalmon + "orangeYellow" ->> #orangeYellow + "orchid" ->> #orchid + "orchidPurple" ->> #orchidPurple + "organicBrown" ->> #organicBrown + "paleBlueLily" ->> #paleBlueLily + "paleGoldenRod" ->> #paleGoldenRod + "paleGreen" ->> #paleGreen + "paleLilac" ->> #paleLilac + "paleSilver" ->> #paleSilver + "paleTurquoise" ->> #paleTurquoise + "paleVioletRed" ->> #paleVioletRed + "papayaOrange" ->> #papayaOrange + "papayaWhip" ->> #papayaWhip + "parchment" ->> #parchment + "parrotGreen" ->> #parrotGreen + "pastelBlue" ->> #pastelBlue + "pastelGreen" ->> #pastelGreen + "pastelLightBlue" ->> #pastelLightBlue + "pastelOrange" ->> #pastelOrange + "pastelPink" ->> #pastelPink + "pastelPurple" ->> #pastelPurple + "pastelRed" ->> #pastelRed + "pastelViolet" ->> #pastelViolet + "pastelYellow" ->> #pastelYellow + "peach" ->> #peach + "peachPuff" ->> #peachPuff + "peaGreen" ->> #peaGreen + "pearl" ->> #pearl + "periwinkle" ->> #periwinkle + "periwinklePink" ->> #periwinklePink + "periwinklePurple" ->> #periwinklePurple + "peru" ->> #peru + "pigPink" ->> #pigPink + "pineGreen" ->> #pineGreen + "pink" ->> #pink + "pinkBrown" ->> #pinkBrown + "pinkBubbleGum" ->> #pinkBubbleGum + "pinkCoral" ->> #pinkCoral + "pinkCupcake" ->> #pinkCupcake + "pinkDaisy" ->> #pinkDaisy + "pinkLemonade" ->> #pinkLemonade + "pinkPlum" ->> #pinkPlum + "pinkRose" ->> #pinkRose + "pinkViolet" ->> #pinkViolet + "pistachioGreen" ->> #pistachioGreen + "platinum" ->> #platinum + "platinumGray" ->> #platinumGray + "platinumSilver" ->> #platinumSilver + "plum" ->> #plum + "plumPie" ->> #plumPie + "plumPurple" ->> #plumPurple + "plumVelvet" ->> #plumVelvet + "powderBlue" ->> #powderBlue + "puce" ->> #puce + "pumpkinOrange" ->> #pumpkinOrange + "purple" ->> #purple + "purpleAmethyst" ->> #purpleAmethyst + "purpleDaffodil" ->> #purpleDaffodil + "purpleDragon" ->> #purpleDragon + "purpleFlower" ->> #purpleFlower + "purpleHaze" ->> #purpleHaze + "purpleIris" ->> #purpleIris + "purpleJam" ->> #purpleJam + "purpleLily" ->> #purpleLily + "purpleMaroon" ->> #purpleMaroon + "purpleMimosa" ->> #purpleMimosa + "purpleMonster" ->> #purpleMonster + "purpleNavy" ->> #purpleNavy + "purplePink" ->> #purplePink + "purplePlum" ->> #purplePlum + "purpleSageBush" ->> #purpleSageBush + "purpleThistle" ->> #purpleThistle + "purpleViolet" ->> #purpleViolet + "raspberry" ->> #raspberry + "raspberryPurple" ->> #raspberryPurple + "ratGray" ->> #ratGray + "rebeccaPurple" ->> #rebeccaPurple + "red" ->> #red + "redBlood" ->> #redBlood + "redDirt" ->> #redDirt + "redFox" ->> #redFox + "rice" ->> #rice + "richLilac" ->> #richLilac + "robinEggBlue" ->> #robinEggBlue + "roguePink" ->> #roguePink + "romanSilver" ->> #romanSilver + "rose" ->> #rose + "roseDust" ->> #roseDust + "roseGold" ->> #roseGold + "roseRed" ->> #roseRed + "rosyBrown" ->> #rosyBrown + "rosyFinch" ->> #rosyFinch + "rosyPink" ->> #rosyPink + "royalBlue" ->> #royalBlue + "rubberDuckyYellow" ->> #rubberDuckyYellow + "rubyRed" ->> #rubyRed + "rust" ->> #rust + "saddleBrown" ->> #saddleBrown + "saffron" ->> #saffron + "saffronRed" ->> #saffronRed + "sage" ->> #sage + "sageGreen" ->> #sageGreen + "saladGreen" ->> #saladGreen + "salmon" ->> #salmon + "sand" ->> #sand + "sandstone" ->> #sandstone + "sandyBrown" ->> #sandyBrown + "sangria" ->> #sangria + "sapphireBlue" ->> #sapphireBlue + "scarlet" ->> #scarlet + "schoolBusYellow" ->> #schoolBusYellow + "seaBlue" ->> #seaBlue + "seafoamGreen" ->> #seafoamGreen + "seaGreen" ->> #seaGreen + "seaShell" ->> #seaShell + "seaTurtleGreen" ->> #seaTurtleGreen + "seaweedGreen" ->> #seaweedGreen + "sedona" ->> #sedona + "sepia" ->> #sepia + "sepiaBrown" ->> #sepiaBrown + "shamrockGreen" ->> #shamrockGreen + "shockingOrange" ->> #shockingOrange + "sienna" ->> #sienna + "silkBlue" ->> #silkBlue + "silver" ->> #silver + "silverPink" ->> #silverPink + "skyBlue" ->> #skyBlue + "skyBlueDress" ->> #skyBlueDress + "slateBlue" ->> #slateBlue + "slateBlueGrey" ->> #slateBlueGrey + "slateGraniteGray" ->> #slateGraniteGray + "slateGray" ->> #slateGray + "slimeGreen" ->> #slimeGreen + "smokeyGray" ->> #smokeyGray + "snow" ->> #snow + "softIvory" ->> #softIvory + "sonicSilver" ->> #sonicSilver + "springGreen" ->> #springGreen + "steelBlue" ->> #steelBlue + "stoplightGoGreen" ->> #stoplightGoGreen + "sunriseOrange" ->> #sunriseOrange + "sunYellow" ->> #sunYellow + "tan" ->> #tan + "tanBrown" ->> #tanBrown + "tangerine" ->> #tangerine + "taupe" ->> #taupe + "teaGreen" ->> #teaGreen + "teal" ->> #teal + "thistle" ->> #thistle + "tiffanyBlue" ->> #tiffanyBlue + "tigerOrange" ->> #tigerOrange + "tomato" ->> #tomato + "tomatoSauceRed" ->> #tomatoSauceRed + "tronBlue" ->> #tronBlue + "tulipPink" ->> #tulipPink + "turquoise" ->> #turquoise + "tyrianPurple" ->> #tyrianPurple + "unbleachedSilk" ->> #unbleachedSilk + "valentineRed" ->> #valentineRed + "vampireGray" ->> #vampireGray + "vanilla" ->> #vanilla + "velvetMaroon" ->> #velvetMaroon + "venomGreen" ->> #venomGreen + "violaPurple" ->> #violaPurple + "violet" ->> #violet + "violetRed" ->> #violetRed + "water" ->> #water + "watermelonPink" ->> #watermelonPink + "westernCharcoal" ->> #westernCharcoal + "wheat" ->> #wheat + "white" ->> #white + "whiteChocolate" ->> #whiteChocolate + "whiteSmoke" ->> #whiteSmoke + "windowsBlue" ->> #windowsBlue + "wineRed" ->> #wineRed + "wisteriaPurple" ->> #wisteriaPurple + "wood" ->> #wood + "yellow" ->> #yellow + "yellowGreen" ->> #yellowGreen + "yellowGreenGrosbeak" ->> #yellowGreenGrosbeak + "yellowLawnGreen" ->> #yellowLawnGreen + "zombieGreen" ->> #zombieGreen ] section :type [] @@ -759,7 +759,7 @@ for :color [ for :complex [ section :block [ - [1 5] >> (to :complex [1.0 5.0]) + [1 5] ->> (to :complex [1.0 5.0]) ] section :char [] @@ -783,7 +783,7 @@ for :date [ section :floating [] section :integer [ - 0 >> to :date "1969-12-31T21:00:00-03:00" + 0 ->> to :date "1969-12-31T21:00:00-03:00" ] section :logical [] @@ -791,7 +791,7 @@ for :date [ section :rational [] section :string [ - "1969-12-31T21:00:00-03:00" >> to :date "1969-12-31T21:00:00-03:00" + "1969-12-31T21:00:00-03:00" ->> to :date "1969-12-31T21:00:00-03:00" ] ; TODO(Types\to): test .format @@ -804,7 +804,7 @@ for :date [ for :dictionary [ section :block [ - ["user" "John"] >> #[user: "John"] + ["user" "John"] ->> #[user: "John"] ] section :char [] @@ -847,41 +847,41 @@ for :floating [ section :complex [] section :floating [ - 1.0 >> 1.0 - 0.0 >> 0.0 - (neg 1.0) >> (neg 1.0) + 1.0 ->> 1.0 + 0.0 ->> 0.0 + (neg 1.0) ->> (neg 1.0) ] section :integer [ - 1 >> 1.0 - 0 >> 0.0 - (neg 1) >> (neg 1.0) + 1 ->> 1.0 + 0 ->> 0.0 + (neg 1) ->> (neg 1.0) ] section :logical [ - true >> 1.0 - false >> 0.0 - maybe >> null + true ->> 1.0 + false ->> 0.0 + maybe ->> null ] section :null [] section :quantity [ - 1`m >> 1.0 - 0`m >> 0.0 - (neg 1`m) >> (neg 1.0) + 1`m ->> 1.0 + 0`m ->> 0.0 + (neg 1`m) ->> (neg 1.0) ] section :rational [ - 1:1 >> 1.0 - 0:1 >> 0.0 - (neg 1:1) >> neg 1.0 + 1:1 ->> 1.0 + 0:1 ->> 0.0 + (neg 1:1) ->> neg 1.0 ] section :string [ - "1.0" >> 1.0 - "0.0" >> 0.0 - "-1.0" >> neg 1.0 + "1.0" ->> 1.0 + "0.0" ->> 0.0 + "-1.0" ->> neg 1.0 ] section :type [] @@ -911,48 +911,48 @@ for :integer [ section :block [] section :char [ - 'K' >> 75 - 'Ϩ' >> 1000 ; supports UNICODE + 'K' ->> 75 + 'Ϩ' ->> 1000 ; supports UNICODE ] section :complex [] section :floating [ - 1.0 >> 1 - 0.0 >> 0 - (neg 1.0) >> (neg 1) + 1.0 ->> 1 + 0.0 ->> 0 + (neg 1.0) ->> (neg 1) - 1.1 >> 1 - 1.5 >> 1 - 1.9 >> 1 + 1.1 ->> 1 + 1.5 ->> 1 + 1.9 ->> 1 ] section :integer [ - 1 >> 1 - 0 >> 0 - (neg 1) >> (neg 1) + 1 ->> 1 + 0 ->> 0 + (neg 1) ->> (neg 1) ] section :logical [ - true >> 1 - false >> 0 - maybe >> null + true ->> 1 + false ->> 0 + maybe ->> null ] section :null [ - null >> 0 + null ->> 0 ] section :rational [ - 1:1 >> 1 - 0:1 >> 0 - (neg 1:1) >> neg 1 + 1:1 ->> 1 + 0:1 ->> 0 + (neg 1:1) ->> neg 1 ] section :string [ - "1" >> 1 - "0" >> 0 - "-1" >> neg 1 + "1" ->> 1 + "0" ->> 0 + "-1" ->> neg 1 ] section :type [] @@ -994,19 +994,19 @@ for :literal [ section :complex [] section :error [ - (try [throw "example"]) >> to :literal "Runtime Error" - (get try [throw "example"] 'message) >> 'example + (try [throw "example"]) ->> to :literal "Runtime Error" + (get try [throw "example"] 'message) ->> 'example ] section :errorKind [ - (to :errorKind "OutOfBounds") >> 'OutOfBounds + (to :errorKind "OutOfBounds") ->> 'OutOfBounds ] section :floating [] section :integer [] section :literal [ - 'example >> 'example + 'example ->> 'example ] section :logical [] @@ -1014,7 +1014,7 @@ for :literal [ section :rational [] section :string [ - "example" >> 'example + "example" ->> 'example ] section :type [] @@ -1034,35 +1034,35 @@ for :logical [ section :complex [] section :floating [ - 0.0 >> false - 1.0 >> true - (neg 1.0) >> true + 0.0 ->> false + 1.0 ->> true + (neg 1.0) ->> true ] section :integer [ - 0 >> false - 1 >> true - (neg 1) >> true - (random 1 1000) >> true - (random neg 1000 neg 1) >> true + 0 ->> false + 1 ->> true + (neg 1) ->> true + (random 1 1000) ->> true + (random neg 1000 neg 1) ->> true ] section :logical [ - true >> true - false >> false - maybe >> maybe + true ->> true + false ->> false + maybe ->> maybe ] section :null [ - null >> false + null ->> false ] section :rational [] section :string [ - "true" >> true - "false" >> false - "maybe" >> maybe + "true" ->> true + "false" ->> false + "maybe" ->> maybe ] section :type [] @@ -1072,45 +1072,45 @@ for :logical [ for :quantity [ section :block [ - [1 `m ] >> 1`m - [1 m ] >> 1`m - [1 'm ] >> 1`m - [1 "m"] >> 1`m + [1 `m ] ->> 1`m + [1 m ] ->> 1`m + [1 'm ] ->> 1`m + [1 "m"] ->> 1`m - [1.0 `m ] >> 1`m - [1.0 m ] >> 1`m - [1.0 'm ] >> 1`m - [1.0 "m"] >> 1`m + [1.0 `m ] ->> 1`m + [1.0 m ] ->> 1`m + [1.0 'm ] ->> 1`m + [1.0 "m"] ->> 1`m - [1:1 `m ] >> 1`m - [1:1 m ] >> 1`m - [1:1 'm ] >> 1`m - [1:1 "m"] >> 1`m + [1:1 `m ] ->> 1`m + [1:1 m ] ->> 1`m + [1:1 'm ] ->> 1`m + [1:1 "m"] ->> 1`m ] section :char [] section :complex [] section :floating [ - 0.0 >> 0` - 1.0 >> 1` - (neg 1.0) >> neg 1` - 1.5 >> 1.5` + 0.0 ->> 0` + 1.0 ->> 1` + (neg 1.0) ->> neg 1` + 1.5 ->> 1.5` ] section :integer [ - 0 >> 0` - 1 >> 1` - (neg 1) >> neg 1` + 0 ->> 0` + 1 ->> 1` + (neg 1) ->> neg 1` ] section :logical [] section :null [] section :rational [ - 1:1 >> 1` - 0:1 >> 0` - (neg 1:1) >> neg 1` + 1:1 ->> 1` + 0:1 ->> 0` + (neg 1:1) ->> neg 1` ] section :string [] @@ -1122,33 +1122,33 @@ for :quantity [ for :rational [ section :block [ - [1 1] >> 1:1 - [1 2] >> 1:2 - [10 5] >> 2:1 - (@[neg 1 1]) >> (neg 1:1) + [1 1] ->> 1:1 + [1 2] ->> 1:2 + [10 5] ->> 2:1 + (@[neg 1 1]) ->> (neg 1:1) ] section :char [] section :complex [] section :floating [ - 1.0 >> 1:1 - 0.0 >> 0:1 - (neg 1.0) >> neg 1:1 + 1.0 ->> 1:1 + 0.0 ->> 0:1 + (neg 1.0) ->> neg 1:1 ] section :integer [ - 1 >> 1:1 - 0 >> 0:1 - (neg 1) >> neg 1:1 + 1 ->> 1:1 + 0 ->> 0:1 + (neg 1) ->> neg 1:1 ] section :logical [] section :null [] section :quantity [ - 1`m >> 1:1 - 0`m >> 0:1 - (neg 1`m) >> neg 1:1 + 1`m ->> 1:1 + 0`m ->> 0:1 + (neg 1`m) ->> neg 1:1 ] section :rational [] @@ -1170,7 +1170,7 @@ for :regex [ section :rational [] section :string [ - "(.*)" >> {/(.*)/} + "(.*)" ->> {/(.*)/} ] section :type [] @@ -1187,79 +1187,79 @@ for :string [ ] section :block [ - [arturo language 12 3.0] >> "[arturo language 12 3.0]" + [arturo language 12 3.0] ->> "[arturo language 12 3.0]" ] section :char [ - 'K' >> "K" - 'Ϩ' >> "Ϩ" ; supports UNICODE + 'K' ->> "K" + 'Ϩ' ->> "Ϩ" ; supports UNICODE ] section :color [ - #white >> "#FFFFFF" - (to :color [15 45 87]) >> "#0F2D57" + #white ->> "#FFFFFF" + (to :color [15 45 87]) ->> "#0F2D57" ] section :complex [ - (to :complex [1 5]) >> "1.0+5.0i" + (to :complex [1 5]) ->> "1.0+5.0i" ] section :dictionary [ - (#[name: "John"]) >> "[name:John]" + (#[name: "John"]) ->> "[name:John]" ] section :error [ - (try [throw "example"]) >> "Runtime Error" - (get try [throw "example"] 'message) >> "example" + (try [throw "example"]) ->> "Runtime Error" + (get try [throw "example"] 'message) ->> "example" ] section :errorKind [ - (to :errorKind "OutOfBounds") >> "OutOfBounds" + (to :errorKind "OutOfBounds") ->> "OutOfBounds" ] section :floating [ - 1.0 >> "1.0" - 0.0 >> "0.0" - (neg 1.0) >> "-1.0" + 1.0 ->> "1.0" + 0.0 ->> "0.0" + (neg 1.0) ->> "-1.0" ] section :integer [ - 1 >> "1" - 0 >> "0" - (neg 1) >> "-1" + 1 ->> "1" + 0 ->> "0" + (neg 1) ->> "-1" ] section :literal [ - 'example >> "example" + 'example ->> "example" ] section :logical [ - true >> "true" - false >> "false" - maybe >> "maybe" + true ->> "true" + false ->> "false" + maybe ->> "maybe" ] section :null [ - null >> "null" + null ->> "null" ] section :quantity [ - 1`m >> "1 m" - 1`ohm >> "1 Ω" - 1`cm2 >> "1 cm²" - 1`kg.m >> "1 kg·m" - 1`kg/l >> "1 kg/L" + 1`m ->> "1 m" + 1`ohm ->> "1 Ω" + 1`cm2 ->> "1 cm²" + 1`kg.m ->> "1 kg·m" + 1`kg/l ->> "1 kg/L" ] section :rational [ - 1:1 >> "1/1" - 0:2 >> "0/1" - 2:10 >> "1/5" - (neg 2:10) >> "-1/5" + 1:1 ->> "1/1" + 0:2 ->> "0/1" + 2:10 ->> "1/5" + (neg 2:10) ->> "-1/5" ] section :regex [ - {/(.*)/} >> "(.*)" + {/(.*)/} ->> "(.*)" ] section :string [] @@ -1373,27 +1373,27 @@ for :string [ ] section :type [ - :integer >> "integer" - :floating >> "floating" - :logical >> "logical" - :string >> "string" - :complex >> "complex" - :rational >> "rational" - :version >> "version" - :type >> "type" + :integer ->> "integer" + :floating ->> "floating" + :logical ->> "logical" + :string ->> "string" + :complex ->> "complex" + :rational ->> "rational" + :version ->> "version" + :type ->> "type" ] section :unit [ - `m >> "m" - `ohm >> "Ω" - `cm2 >> "cm²" - `kg.m >> "kg·m" - `kg/l >> "kg/L" + `m ->> "m" + `ohm ->> "Ω" + `cm2 ->> "cm²" + `kg.m ->> "kg·m" + `kg/l ->> "kg/L" ] section :version [ - 1.2.3 >> "1.2.3" - 1.2.3-pre >> "1.2.3-pre" + 1.2.3 ->> "1.2.3" + 1.2.3-pre ->> "1.2.3-pre" ] test ":word => :string" [ @@ -1538,14 +1538,14 @@ for :type [ section :rational [] section :string [ - "integer" >> :integer - "floating" >> :floating - "logical" >> :logical - "string" >> :string - "complex" >> :complex - "rational" >> :rational - "version" >> :version - "type" >> :type + "integer" ->> :integer + "floating" ->> :floating + "logical" ->> :logical + "string" ->> :string + "complex" ->> :complex + "rational" ->> :rational + "version" ->> :version + "type" ->> :type ] section :type [] @@ -1564,11 +1564,11 @@ for :unit [ section :null [] section :quantity [ - 1`m >> `m - 1`ohm >> `ohm - 1`cm2 >> `cm2 - 1`kg.m >> `kg.m - 1`kg/l >> `kg/l + 1`m ->> `m + 1`ohm ->> `ohm + 1`cm2 ->> `cm2 + 1`kg.m ->> `kg.m + 1`kg/l ->> `kg/l ] section :rational [] @@ -1590,8 +1590,8 @@ for :version [ section :rational [] section :string [ - "1.2.3" >> 1.2.3 - "1.2.3-pre" >> 1.2.3-pre + "1.2.3" ->> 1.2.3 + "1.2.3-pre" ->> 1.2.3-pre ] section :type []