aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/data/format/tar.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/data/format/tar.lux')
-rw-r--r--stdlib/source/test/lux/data/format/tar.lux42
1 files changed, 21 insertions, 21 deletions
diff --git a/stdlib/source/test/lux/data/format/tar.lux b/stdlib/source/test/lux/data/format/tar.lux
index c951382ba..0c43ada46 100644
--- a/stdlib/source/test/lux/data/format/tar.lux
+++ b/stdlib/source/test/lux/data/format/tar.lux
@@ -5,13 +5,13 @@
[abstract
[monad (#+ do)]]
[control
+ ["." maybe]
["." try]
["." exception]
["<>" parser
["<b>" binary]]]
[data
["." product]
- ["." maybe]
["." binary ("#\." equivalence monoid)]
["." text ("#\." equivalence)
["%" format (#+ format)]
@@ -172,8 +172,8 @@
(|> (do try.monad
[expected_path (/.path expected_path)
tar (|> (row.row (<tag> expected_path))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (<tag> actual_path)))
(text\= (/.from_path expected_path)
@@ -201,8 +201,8 @@
#/.group {#/.name /.anonymous
#/.id /.no_id}}
expected_content]))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (<tag> [actual_path actual_moment actual_mode actual_ownership actual_content])))
(let [seconds (: (-> Instant Int)
@@ -250,7 +250,7 @@
(_.cover [/.and]
(|> (do try.monad
[path (/.path path)
- content (/.content (binary.create 0))
+ content (/.content (binary.empty 0))
tar (|> (row.row (#/.Normal [path
(instant.of_millis +0)
expected_mode
@@ -259,8 +259,8 @@
#/.group {#/.name /.anonymous
#/.id /.no_id}}
content]))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ actual_mode _ _])))
(n.= (/.mode expected_mode)
@@ -273,7 +273,7 @@
[(_.cover [<expected_mode>]
(|> (do try.monad
[path (/.path path)
- content (/.content (binary.create 0))
+ content (/.content (binary.empty 0))
tar (|> (row.row (#/.Normal [path
(instant.of_millis +0)
<expected_mode>
@@ -282,8 +282,8 @@
#/.group {#/.name /.anonymous
#/.id /.no_id}}
content]))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ actual_mode _ _])))
(n.= (/.mode <expected_mode>)
@@ -339,7 +339,7 @@
(_.cover [/.Name /.name /.from_name]
(|> (do try.monad
[path (/.path path)
- content (/.content (binary.create 0))
+ content (/.content (binary.empty 0))
expected (/.name expected)
tar (|> (row.row (#/.Normal [path
(instant.of_millis +0)
@@ -349,8 +349,8 @@
#/.group {#/.name /.anonymous
#/.id /.no_id}}
content]))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ _ actual_ownership _])))
(and (text\= (/.from_name expected)
@@ -364,7 +364,7 @@
(_.cover [/.anonymous /.no_id]
(|> (do try.monad
[path (/.path path)
- content (/.content (binary.create 0))
+ content (/.content (binary.empty 0))
tar (|> (row.row (#/.Normal [path
(instant.of_millis +0)
/.none
@@ -373,8 +373,8 @@
#/.group {#/.name /.anonymous
#/.id /.no_id}}
content]))
- (format.run /.writer)
- (<b>.run /.parser))]
+ (format.result /.writer)
+ (<b>.result /.parser))]
(in (case (row.list tar)
(^ (list (#/.Normal [_ _ _ actual_ownership _])))
(and (text\= (/.from_name /.anonymous)
@@ -400,13 +400,13 @@
($_ _.and
(_.cover [/.writer /.parser]
(|> row.empty
- (format.run /.writer)
- (<b>.run /.parser)
+ (format.result /.writer)
+ (<b>.result /.parser)
(\ try.monad map row.empty?)
(try.else false)))
(_.cover [/.invalid_end_of_archive]
- (let [dump (format.run /.writer row.empty)]
- (case (<b>.run /.parser (binary\compose dump dump))
+ (let [dump (format.result /.writer row.empty)]
+ (case (<b>.result /.parser (binary\compose dump dump))
(#try.Success _)
false