aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/data/format/tar.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-18 03:29:15 -0400
committerEduardo Julian2021-08-18 03:29:15 -0400
commite00ba096c8837abe85d366e0c1293c09dbe84d81 (patch)
treedc1f0955d4461ae30bb4945cddd74c462f1aee98 /stdlib/source/test/lux/data/format/tar.lux
parent3289b9dcf9d5d1c1e5c380e3185065c8fd32535f (diff)
Some bug fixes.
Diffstat (limited to 'stdlib/source/test/lux/data/format/tar.lux')
-rw-r--r--stdlib/source/test/lux/data/format/tar.lux22
1 files changed, 11 insertions, 11 deletions
diff --git a/stdlib/source/test/lux/data/format/tar.lux b/stdlib/source/test/lux/data/format/tar.lux
index fe0083c95..9bed1f5ed 100644
--- a/stdlib/source/test/lux/data/format/tar.lux
+++ b/stdlib/source/test/lux/data/format/tar.lux
@@ -41,7 +41,7 @@
(_.for [/.Path]
(do {! random.monad}
[expected (random.ascii/lower /.path_size)
- invalid (random.ascii/lower (inc /.path_size))
+ invalid (random.ascii/lower (++ /.path_size))
not_ascii (random.text (random.char (unicode.set [unicode/block.katakana (list)]))
/.path_size)]
(`` ($_ _.and
@@ -76,7 +76,7 @@
(_.for [/.Name]
(do {! random.monad}
[expected (random.ascii/lower /.name_size)
- invalid (random.ascii/lower (inc /.name_size))
+ invalid (random.ascii/lower (++ /.name_size))
not_ascii (random.text (random.char (unicode.set [unicode/block.katakana (list)]))
/.name_size)]
(`` ($_ _.and
@@ -157,14 +157,14 @@
(def: entry
Test
(do {! random.monad}
- [expected_path (random.ascii/lower (dec /.path_size))
+ [expected_path (random.ascii/lower (-- /.path_size))
expected_moment (\ ! map (|>> (n.% 1,0,00,00,00,00,000) .int instant.of_millis)
random.nat)
chunk (random.ascii/lower chunk_size)
chunks (\ ! map (n.% 100) random.nat)
.let [content (|> chunk
(list.repeated chunks)
- text.joined
+ text.together
(\ utf8.codec encode))]]
(`` ($_ _.and
(~~ (template [<type> <tag>]
@@ -317,7 +317,7 @@
(do {! random.monad}
[path (random.ascii/lower /.path_size)
expected (random.ascii/lower /.name_size)
- invalid (random.ascii/lower (inc /.name_size))
+ invalid (random.ascii/lower (++ /.name_size))
not_ascii (random.text (random.char (unicode.set [unicode/block.katakana (list)]))
/.name_size)]
(_.for [/.Ownership /.Owner /.ID]
@@ -354,9 +354,9 @@
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ _ actual_ownership _])))
(and (text\= (/.from_name expected)
- (/.from_name (get@ [#/.user #/.name] actual_ownership)))
+ (/.from_name (value@ [#/.user #/.name] actual_ownership)))
(text\= (/.from_name /.anonymous)
- (/.from_name (get@ [#/.group #/.name] actual_ownership))))
+ (/.from_name (value@ [#/.group #/.name] actual_ownership))))
_
false)))
@@ -378,13 +378,13 @@
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ _ actual_ownership _])))
(and (text\= (/.from_name /.anonymous)
- (/.from_name (get@ [#/.user #/.name] actual_ownership)))
+ (/.from_name (value@ [#/.user #/.name] actual_ownership)))
(n.= (/.from_small /.no_id)
- (/.from_small (get@ [#/.user #/.id] actual_ownership)))
+ (/.from_small (value@ [#/.user #/.id] actual_ownership)))
(text\= (/.from_name /.anonymous)
- (/.from_name (get@ [#/.group #/.name] actual_ownership)))
+ (/.from_name (value@ [#/.group #/.name] actual_ownership)))
(n.= (/.from_small /.no_id)
- (/.from_small (get@ [#/.group #/.id] actual_ownership))))
+ (/.from_small (value@ [#/.group #/.id] actual_ownership))))
_
false)))