remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / basis / help / definitions / definitions-tests.factor
blobd95f6988a208f71392e7f4fa26e0b769d0944431
1 USING: math definitions help.topics help tools.test
2 prettyprint parser io.streams.string kernel source-files
3 assocs namespaces words io sequences eval accessors ;
4 IN: help.definitions.tests
6 [ ] [ \ + >link see ] unit-test
9     [ 4 ] [
10         "IN: help.definitions.tests USING: help.syntax ; : hello ; HELP: hello \"test\" ; ARTICLE: \"hello\" \"world\" ; ARTICLE: \"hello2\" \"world\" ;" <string-reader> "foo"
11         parse-stream drop
13         "foo" source-file definitions>> first assoc-size
14     ] unit-test
16     [ t ] [ "hello" articles get key? ] unit-test
17     [ t ] [ "hello2" articles get key? ] unit-test
18     [ t ] [
19         "hello" "help.definitions.tests" lookup "help" word-prop >boolean
20     ] unit-test
22     [ 2 ] [
23         "IN: help.definitions.tests USING: help.syntax ; : hello ; ARTICLE: \"hello\" \"world\" ;" <string-reader> "foo"
24         parse-stream drop
26         "foo" source-file definitions>> first assoc-size
27     ] unit-test
29     [ t ] [ "hello" articles get key? ] unit-test
30     [ f ] [ "hello2" articles get key? ] unit-test
31     [ f ] [
32         "hello" "help.definitions.tests" lookup "help" word-prop
33     ] unit-test
35     [ ] [ "IN: help.definitions.tests USING: help.syntax ; : xxx ; HELP: xxx ;" eval ] unit-test
37     [ ] [ "xxx" "help.definitions.tests" lookup print-topic ] unit-test
39     [ ] [ "xxx" "help.definitions.tests" lookup >link synopsis print ] unit-test
40 ] with-file-vocabs