testLinkExternal
<timeout: 10>
"LinkExternal <- OPEN_BRACKET s URLPrefix .{SpaceCaption} "
|input xmlElement actor ios|
actor := PEGWikiMediaGeneratorTables new.
actor transcripton: false.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
input := '[irc://something]'.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
self assert: ((ios contents) = '<a href="irc://something">irc://something</a>') .
input := '[ircs://something]'.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
self assert: ((ios contents) = '<a href="ircs://something">ircs://something</a>') .
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
input := '[news://emacs.org]'.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
self assert: ((ios contents) = '<a href="news://emacs.org">news://emacs.org</a>') .
input := '[gopher://what.is.a.gopher.address]'.
xmlElement := parser parse: 'LinkExternal' stream: input reading actor: actor.
ios := xmlElement printString.
self assert: ((ios contents) = '<a href="gopher://what.is.a.gopher.address">gopher://what.is.a.gopher.address</a>') .