2009-01-29 02:44:09 -05:00
|
|
|
IN: xmode.code2html.tests
|
|
|
|
USING: xmode.code2html xmode.catalog
|
|
|
|
tools.test multiline splitting memoize
|
2009-01-30 20:34:31 -05:00
|
|
|
kernel io.streams.string xml.writer ;
|
2009-01-29 02:44:09 -05:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ } [ \ (load-mode) reset-memoized ] unit-test
|
2009-01-29 02:44:09 -05:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ } [
|
2015-07-26 01:59:56 -04:00
|
|
|
"<style type=\"text/css\" media=\"screen\" >
|
|
|
|
* {margin:0; padding:0; border:0;}"
|
2009-01-29 02:44:09 -05:00
|
|
|
string-lines "html" htmlize-lines drop
|
2009-01-30 20:34:31 -05:00
|
|
|
] unit-test
|
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ } [
|
2009-01-30 20:34:31 -05:00
|
|
|
"test.c"
|
2015-07-26 01:59:56 -04:00
|
|
|
"int x = \"hi\";
|
|
|
|
/* a comment */" <string-reader> htmlize-stream
|
2009-01-30 20:34:31 -05:00
|
|
|
write-xml
|
2009-03-28 23:13:58 -04:00
|
|
|
] unit-test
|
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" } [
|
2009-03-28 23:13:58 -04:00
|
|
|
{ ": foo ;" } "factor" htmlize-lines xml>string
|
2009-03-28 23:19:55 -04:00
|
|
|
] unit-test
|
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ ":foo" } [
|
2009-03-28 23:19:55 -04:00
|
|
|
{ ":foo" } "factor" htmlize-lines xml>string
|
2009-09-20 23:42:40 -04:00
|
|
|
] unit-test
|