factor/library/test/help/topics.factor

25 lines
617 B
Factor
Raw Normal View History

2006-06-22 22:36:56 -04:00
IN: temporary
2006-08-02 16:53:26 -04:00
USING: definitions help kernel sequences test words ;
2006-06-22 22:36:56 -04:00
! Test help cross-referencing
2006-08-02 16:53:26 -04:00
{ "test" "b" } "Test B" { "Hello world." } f <article> add-article
2006-06-22 22:36:56 -04:00
2006-08-02 16:53:26 -04:00
{ "test" "a" } "Test A" { { $subsection { "test" "b" } } } f <article> add-article
2006-06-22 22:36:56 -04:00
{ "test" "a" } remove-article
[ t ] [ { "test" "b" } parents empty? ] unit-test
SYMBOL: foo
2006-08-02 16:53:26 -04:00
{ "test" "a" } "Test A" { { $subsection foo } } f <article> add-article
2006-06-22 22:36:56 -04:00
foo { $description "Fie foe fee" } set-word-help
[ t ] [ "Fie" search-help [ first foo eq? ] contains? ] unit-test
\ foo forget
[ f ] [ "Fie" search-help [ first foo eq? ] contains? ] unit-test