aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex/cli.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-07-25 03:12:17 -0400
committerEduardo Julian2021-07-25 03:12:17 -0400
commit62b3abfcc014ca1c19d62aacdd497f6a250b372c (patch)
treec23155ecef6018b78b349f0ba6cd238872b24da7 /stdlib/source/test/aedifex/cli.lux
parent0f545b7e57d2564e351d907befd2ce26900c5521 (diff)
Better syntax for "library/lux.^multi".
Diffstat (limited to 'stdlib/source/test/aedifex/cli.lux')
-rw-r--r--stdlib/source/test/aedifex/cli.lux28
1 files changed, 14 insertions, 14 deletions
diff --git a/stdlib/source/test/aedifex/cli.lux b/stdlib/source/test/aedifex/cli.lux
index 71ea72b8c..4239644aa 100644
--- a/stdlib/source/test/aedifex/cli.lux
+++ b/stdlib/source/test/aedifex/cli.lux
@@ -48,7 +48,7 @@
## #Auto
..compilation))
-(def: (format-compilation value)
+(def: (format_compilation value)
(-> /.Compilation (List Text))
(case value
#/.Build (list "build")
@@ -63,10 +63,10 @@
#/.Dependencies (list "deps")
#/.Install (list "install")
(#/.Deploy repository [user password]) (list "deploy" repository user password)
- (#/.Compilation compilation) (..format-compilation compilation)
- (#/.Auto compilation) (list& "auto" (..format-compilation compilation))))
+ (#/.Compilation compilation) (..format_compilation compilation)
+ (#/.Auto compilation) (list& "auto" (..format_compilation compilation))))
-(def: without-profile
+(def: without_profile
Test
(do random.monad
[expected ..command]
@@ -81,19 +81,19 @@
(#try.Failure error)
false)))))
-(def: with-profile
+(def: with_profile
Test
(do random.monad
- [expected-profile (random.ascii/alpha 1)
- expected-command ..command]
+ [expected_profile (random.ascii/alpha 1)
+ expected_command ..command]
(_.test "With profile."
- (|> expected-command
+ (|> expected_command
..format
- (list& "with" expected-profile)
+ (list& "with" expected_profile)
(cli.run /.command)
- (case> (#try.Success [actual-profile actual-command])
- (and (text\= expected-profile actual-profile)
- (\ /.equivalence = expected-command actual-command))
+ (case> (#try.Success [actual_profile actual_command])
+ (and (text\= expected_profile actual_profile)
+ (\ /.equivalence = expected_command actual_command))
(#try.Failure error)
false)))))
@@ -108,6 +108,6 @@
(_.for [/.command]
($_ _.and
- ..without-profile
- ..with-profile
+ ..without_profile
+ ..with_profile
))))))