Bug fixes for lcs.diff2html; xml.writer
[factor/jcg.git] / basis / help / markup / markup-tests.factor
blob0d8aa53d442fe7a549392a9449b8c5d46c5d70f6
1 USING: definitions help help.markup kernel sequences tools.test
2 words parser namespaces assocs generic io.streams.string accessors
3 strings math ;
4 IN: help.markup.tests
6 TUPLE: blahblah quux ;
8 [ "an int" ] [ [ { "int" } $instance ] with-string-writer ] unit-test
10 [ ] [ \ quux>> print-topic ] unit-test
11 [ ] [ \ >>quux print-topic ] unit-test
12 [ ] [ \ blahblah? print-topic ] unit-test
14 : fooey "fooey" throw ;
16 [ ] [ \ fooey print-topic ] unit-test
18 [ ] [ gensym print-topic ] unit-test
20 [ "a string" ]
21 [ [ { $or string } print-element ] with-string-writer ] unit-test
23 [ "a string or an integer" ]
24 [ [ { $or string integer } print-element ] with-string-writer ] unit-test
26 [ "a string, a fixnum, or an integer" ]
27 [ [ { $or string fixnum integer } print-element ] with-string-writer ] unit-test