aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/documentation.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-04-09 03:03:46 -0400
committerEduardo Julian2022-04-09 03:03:46 -0400
commit04c7f49a732380a2b9f72b1b937171b341c24323 (patch)
treed54c92bf10665bba0ec4643746becce569604fb2 /stdlib/source/test/lux/documentation.lux
parentf11afb9d2dfe2d59b41e8056eb8c4ae65268415f (diff)
Better names for testing macros (plus better indentation).
Diffstat (limited to 'stdlib/source/test/lux/documentation.lux')
-rw-r--r--stdlib/source/test/lux/documentation.lux116
1 files changed, 58 insertions, 58 deletions
diff --git a/stdlib/source/test/lux/documentation.lux b/stdlib/source/test/lux/documentation.lux
index c5b8620e4..684556ecf 100644
--- a/stdlib/source/test/lux/documentation.lux
+++ b/stdlib/source/test/lux/documentation.lux
@@ -51,70 +51,70 @@
(all _.and
(_.for [/.Definition]
(all _.and
- (_.cover [/.default]
- (case (`` (/.default (~~ (template.symbol [.._] [g!default]))))
- (pattern (list definition))
- (and (|> definition
- (the /.#definition)
- (text#= (template.text [g!default])))
- (|> definition
- (the /.#documentation)
- md.markdown
- (text#= "")
- not))
+ (_.coverage [/.default]
+ (case (`` (/.default (~~ (template.symbol [.._] [g!default]))))
+ (pattern (list definition))
+ (and (|> definition
+ (the /.#definition)
+ (text#= (template.text [g!default])))
+ (|> definition
+ (the /.#documentation)
+ md.markdown
+ (text#= "")
+ not))
- _
- false))
- (_.cover [/.documentation:]
- (case ..documentation:
- (pattern (list documentation:))
- (and (|> documentation:
- (the /.#definition)
- (text#= (template.text [/.documentation:])))
- (|> documentation:
- (the /.#documentation)
- md.markdown
- (text.contains? 'definition_description')))
+ _
+ false))
+ (_.coverage [/.documentation:]
+ (case ..documentation:
+ (pattern (list documentation:))
+ (and (|> documentation:
+ (the /.#definition)
+ (text#= (template.text [/.documentation:])))
+ (|> documentation:
+ (the /.#documentation)
+ md.markdown
+ (text.contains? 'definition_description')))
- _
- false))
+ _
+ false))
))
(_.for [/.Module]
(all _.and
- (_.cover [/.module /.documentation]
- (let [sub (`` (/.module /._
- (~~ (template.text ['sub_description']))
- []
- []))
- super (`` (/.module .._
- (~~ (template.text ['super_description']))
- [..documentation:]
- [sub]))]
- (and (text.contains? (template.text ['sub_description'])
- (/.documentation sub))
- (text.contains? (/.documentation sub)
- (/.documentation super))
- (text.contains? (template.text ['super_description'])
- (/.documentation super))
- (case ..documentation:
- (pattern (list documentation:))
- (text.contains? (md.markdown (the /.#documentation documentation:))
- (/.documentation super))
+ (_.coverage [/.module /.documentation]
+ (let [sub (`` (/.module /._
+ (~~ (template.text ['sub_description']))
+ []
+ []))
+ super (`` (/.module .._
+ (~~ (template.text ['super_description']))
+ [..documentation:]
+ [sub]))]
+ (and (text.contains? (template.text ['sub_description'])
+ (/.documentation sub))
+ (text.contains? (/.documentation sub)
+ (/.documentation super))
+ (text.contains? (template.text ['super_description'])
+ (/.documentation super))
+ (case ..documentation:
+ (pattern (list documentation:))
+ (text.contains? (md.markdown (the /.#documentation documentation:))
+ (/.documentation super))
- _
- false))))
+ _
+ false))))
))
- (_.cover [/.unqualified_symbol]
- (`` (and (~~ (template [<example>]
- [(macro_error <example>)]
-
- [(/.default g!default)]
- [(/.documentation: g!default
- (~~ (template.text ['definition_description'])))]
- [(/.module g!default
- ""
- [..documentation:]
- [sub])]
- )))))
+ (_.coverage [/.unqualified_symbol]
+ (`` (and (~~ (template [<example>]
+ [(macro_error <example>)]
+
+ [(/.default g!default)]
+ [(/.documentation: g!default
+ (~~ (template.text ['definition_description'])))]
+ [(/.module g!default
+ ""
+ [..documentation:]
+ [sub])]
+ )))))
)))))
)