aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/data/text
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/data/text')
-rw-r--r--stdlib/source/test/lux/data/text/encoding.lux4
-rw-r--r--stdlib/source/test/lux/data/text/escape.lux40
-rw-r--r--stdlib/source/test/lux/data/text/format.lux2
-rw-r--r--stdlib/source/test/lux/data/text/regex.lux8
-rw-r--r--stdlib/source/test/lux/data/text/unicode/block.lux6
5 files changed, 30 insertions, 30 deletions
diff --git a/stdlib/source/test/lux/data/text/encoding.lux b/stdlib/source/test/lux/data/text/encoding.lux
index ea8605b82..3b7f83b72 100644
--- a/stdlib/source/test/lux/data/text/encoding.lux
+++ b/stdlib/source/test/lux/data/text/encoding.lux
@@ -185,7 +185,7 @@
<named> (template [<definition> <by_letter>]
[((: (-> Any (List /.Encoding))
(function (_ _)
- (`` (list (~~ (template.splice <by_letter>))))))
+ (`` (list (~~ (template.spliced <by_letter>))))))
[])]
<encodings>)]
@@ -205,7 +205,7 @@
(template [<definition> <by_letter>]
[(def: <definition>
Test
- (`` (_.cover [/.name (~~ (template.splice <by_letter>))]
+ (`` (_.cover [/.name (~~ (template.spliced <by_letter>))]
..verdict)))]
<encodings>)
diff --git a/stdlib/source/test/lux/data/text/escape.lux b/stdlib/source/test/lux/data/text/escape.lux
index bee4a7560..203cf9b81 100644
--- a/stdlib/source/test/lux/data/text/escape.lux
+++ b/stdlib/source/test/lux/data/text/escape.lux
@@ -56,18 +56,18 @@
(def: valid_sigils
(Set Char)
- (set.from_list n.hash
- (list (debug.private /.\0_sigil)
- (debug.private /.\a_sigil)
- (debug.private /.\b_sigil)
- (debug.private /.\t_sigil)
- (debug.private /.\n_sigil)
- (debug.private /.\v_sigil)
- (debug.private /.\f_sigil)
- (debug.private /.\r_sigil)
- (debug.private /.\''_sigil)
- (debug.private /.\\_sigil)
- (debug.private /.\u_sigil))))
+ (set.of_list n.hash
+ (list (debug.private /.\0_sigil)
+ (debug.private /.\a_sigil)
+ (debug.private /.\b_sigil)
+ (debug.private /.\t_sigil)
+ (debug.private /.\n_sigil)
+ (debug.private /.\v_sigil)
+ (debug.private /.\f_sigil)
+ (debug.private /.\r_sigil)
+ (debug.private /.\''_sigil)
+ (debug.private /.\\_sigil)
+ (debug.private /.\u_sigil))))
(syntax: (static_sample)
(do meta.monad
@@ -100,7 +100,7 @@
[left (random.char unicode.character)
right (random.char unicode.character)]
(_.cover [/.escape /.un_escape]
- (let [expected (format (text.from_code left) (text.from_code right))]
+ (let [expected (format (text.of_code left) (text.of_code right))]
(if (or (/.escapable? left)
(/.escapable? right))
(let [escaped (/.escape expected)]
@@ -114,7 +114,7 @@
(text\= expected (/.escape expected))))))
(do {! random.monad}
[dummy (|> (random.char unicode.character)
- (\ ! map text.from_code))]
+ (\ ! map text.of_code))]
(_.cover [/.dangling_escape]
(case (/.un_escape (format (/.escape dummy) "\"))
(#try.Success _)
@@ -124,8 +124,8 @@
(exception.match? /.dangling_escape error))))
(do {! random.monad}
[dummy (|> (random.char unicode.character)
- (random.filter (|>> (set.member? ..valid_sigils) not))
- (\ ! map text.from_code))]
+ (random.only (|>> (set.member? ..valid_sigils) not))
+ (\ ! map text.of_code))]
(_.cover [/.invalid_escape]
(case (/.un_escape (format "\" dummy))
(#try.Success _)
@@ -137,10 +137,10 @@
[too_short (|> (random.char unicode.character)
(\ ! map (n.% (hex "1000"))))
code (|> (random.unicode 4)
- (random.filter (function (_ code)
- (case (\ n.hex decode code)
- (#try.Failure error) true
- (#try.Success _) false))))]
+ (random.only (function (_ code)
+ (case (\ n.hex decode code)
+ (#try.Failure error) true
+ (#try.Success _) false))))]
(_.cover [/.invalid_unicode_escape]
(template.let [(!invalid <code>)
[(case (/.un_escape (format "\u" <code>))
diff --git a/stdlib/source/test/lux/data/text/format.lux b/stdlib/source/test/lux/data/text/format.lux
index e7a34a90c..d339e0717 100644
--- a/stdlib/source/test/lux/data/text/format.lux
+++ b/stdlib/source/test/lux/data/text/format.lux
@@ -175,7 +175,7 @@
(/.maybe /.nat sample)))))
(do {! random.monad}
[modulus (random.one (|>> modulus.modulus
- try.to_maybe)
+ try.maybe)
random.int)
sample (\ ! map (modular.modular modulus)
random.int)]
diff --git a/stdlib/source/test/lux/data/text/regex.lux b/stdlib/source/test/lux/data/text/regex.lux
index cb481b97a..50498f396 100644
--- a/stdlib/source/test/lux/data/text/regex.lux
+++ b/stdlib/source/test/lux/data/text/regex.lux
@@ -132,9 +132,9 @@
(should_fail (/.regex "\p{Blank}") ".")))
(_.test "ASCII."
(and (should_pass (/.regex "\p{ASCII}") text.tab)
- (should_fail (/.regex "\p{ASCII}") (text.from_code (hex "1234")))))
+ (should_fail (/.regex "\p{ASCII}") (text.of_code (hex "1234")))))
(_.test "Control characters."
- (and (should_pass (/.regex "\p{Contrl}") (text.from_code (hex "12")))
+ (and (should_pass (/.regex "\p{Contrl}") (text.of_code (hex "12")))
(should_fail (/.regex "\p{Contrl}") "a")))
(_.test "Punctuation."
(and (should_pass (/.regex "\p{Punct}") "@")
@@ -143,8 +143,8 @@
(and (should_pass (/.regex "\p{Graph}") "@")
(should_fail (/.regex "\p{Graph}") " ")))
(_.test "Print."
- (and (should_pass (/.regex "\p{Print}") (text.from_code (hex "20")))
- (should_fail (/.regex "\p{Print}") (text.from_code (hex "1234")))))
+ (and (should_pass (/.regex "\p{Print}") (text.of_code (hex "20")))
+ (should_fail (/.regex "\p{Print}") (text.of_code (hex "1234")))))
))
(def: custom_character_classes
diff --git a/stdlib/source/test/lux/data/text/unicode/block.lux b/stdlib/source/test/lux/data/text/unicode/block.lux
index 3b1f3866c..b895df0de 100644
--- a/stdlib/source/test/lux/data/text/unicode/block.lux
+++ b/stdlib/source/test/lux/data/text/unicode/block.lux
@@ -149,16 +149,16 @@
<named> (template [<definition> <part>]
[((: (-> Any (List /.Block))
(function (_ _)
- (`` (list (~~ (template.splice <part>))))))
+ (`` (list (~~ (template.spliced <part>))))))
[])]
<blocks>)]
(template [<definition> <part>]
[(def: <definition>
Test
- (`` (_.cover [(~~ (template.splice <part>))]
+ (`` (_.cover [(~~ (template.spliced <part>))]
(let [all (list.concat (list <named>))
- unique (set.from_list /.hash all)]
+ unique (set.of_list /.hash all)]
(n.= (list.size all)
(set.size unique))))))]