mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 22:01:46 +03:00
doccords: unit test for core dox
This commit is contained in:
parent
3d701f79c4
commit
715d0f3793
@ -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']]]]]
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user