USING: math definitions help.topics help tools.test
prettyprint parser io.streams.string kernel source-files
-assocs namespaces words io sequences eval ;
+assocs namespaces words io sequences eval accessors ;
IN: help.definitions.tests
[ ] [ \ + >link see ] unit-test
"IN: help.definitions.tests USING: help.syntax ; : hello ; HELP: hello \"test\" ; ARTICLE: \"hello\" \"world\" ; ARTICLE: \"hello2\" \"world\" ;" <string-reader> "foo"
parse-stream drop
- "foo" source-file source-file-definitions first assoc-size
+ "foo" source-file definitions>> first assoc-size
] unit-test
[ t ] [ "hello" articles get key? ] unit-test
"IN: help.definitions.tests USING: help.syntax ; : hello ; ARTICLE: \"hello\" \"world\" ;" <string-reader> "foo"
parse-stream drop
- "foo" source-file source-file-definitions first assoc-size
+ "foo" source-file definitions>> first assoc-size
] unit-test
[ t ] [ "hello" articles get key? ] unit-test
USING: definitions help help.markup kernel sequences tools.test
-words parser namespaces assocs generic io.streams.string ;
+words parser namespaces assocs generic io.streams.string accessors ;
IN: help.markup.tests
TUPLE: blahblah quux ;
[ "an int" ] [ [ { "int" } $instance ] with-string-writer ] unit-test
-[ ] [ \ blahblah-quux help ] unit-test
-[ ] [ \ set-blahblah-quux help ] unit-test
+[ ] [ \ quux>> help ] unit-test
+[ ] [ \ >>quux help ] unit-test
[ ] [ \ blahblah? help ] unit-test
: fooey "fooey" throw ;
+USING: kernel tools.test parser vocabs help.syntax namespaces
+eval accessors ;
IN: help.syntax.tests
-USING: tools.test parser vocabs help.syntax namespaces eval ;
[
[ "foobar" ] [
"help.syntax.tests" vocab vocab-help
] unit-test
- [ ] [ f "help.syntax.tests" vocab set-vocab-help ] unit-test
+ [ ] [ "help.syntax.tests" vocab f >>help drop ] unit-test
] with-file-vocabs