doccords: unit test for core dox

This commit is contained in:
drbeefsupreme 2022-05-09 16:01:32 -04:00
parent 3d701f79c4
commit 715d0f3793
No known key found for this signature in database
GPG Key ID: B70D5683DE7F9EFC

View File

@ -2,13 +2,24 @@
:: ::
/+ *test, *dprint /+ *test, *dprint
:: ::
=> => =>
:: This core is for testing core and chapter docs.
:> # %test-core
:>
:> core-summary
:>
:> core-description
|%
++ empty ~
--
::
:> # %test-arms :> # %test-arms
:> :>
:> arms used for testing arm documentation :> arms used for testing arm documentation
|% |%
+| %types +| %types
+$ arm-dox [tape what what what] +$ arm-dox [tape what what what]
+$ core-dox [tape what]
:: ::
+| %helper-functions +| %helper-functions
++ get-item ++ get-item
@ -23,6 +34,13 @@
?> ?=([%arm *] itm) ?> ?=([%arm *] itm)
[name adoc pdoc cdoc]:itm [name adoc pdoc cdoc]:itm
:: ::
++ get-core-dox
|= a=(list term)
^- core-dox
=/ itm=item (get-item a)
?> ?=([%core *] itm)
[name docs]:itm
::
+| %docs-for-arms +| %docs-for-arms
++ no-doc ~ ++ no-doc ~
:: ::
@ -341,4 +359,11 @@
`['product-doc' ~] `['product-doc' ~]
`['core-doc' ~] `['core-doc' ~]
== ==
::
++ test-core
%+ expect-eq
!> (get-core-dox ~[%test-core])
::
!> ^- core-dox
["test-core" `['core-summary' ~[~[[%.y 'core-description']]]]]
-- --