mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
Refactor wikified function tests
This commit is contained in:
parent
a62d7f1b0d
commit
d4ab427ceb
@ -6,25 +6,31 @@ tags: [[$:/tags/wiki-test-spec]]
|
|||||||
title: Output
|
title: Output
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
\function fn-buffalo(p)
|
\function fn-buffalo(param)
|
||||||
[<p>addsuffix[ with a buffalo]]
|
[<param>addsuffix[ with a ''buffalo'']]
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure proc-buffalo(p)
|
\procedure proc-buffalo(param)
|
||||||
<$text text={{{ [<p>addsuffix[ with a buffalo]] }}}/>
|
<<param>> with a ''buffalo''
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define macro-buffalo(p)
|
\define macro-buffalo(param)
|
||||||
$p$ with a buffalo
|
$param$ with a ''buffalo''
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<<fn-buffalo "Going to lunch">>
|
<<fn-buffalo "Going to lunch">>
|
||||||
|
|
||||||
<<proc-buffalo "Going to lunch">>
|
<<proc-buffalo "Going to breakfast">>
|
||||||
|
|
||||||
<<macro-buffalo "Going to lunch">>
|
<<macro-buffalo "Going to dinner">>
|
||||||
|
|
||||||
|
<$transclude $variable="fn-buffalo" param="Going to lunch" $output="text/plain"/>
|
||||||
|
|
||||||
|
<$transclude $variable="proc-buffalo" param="Going to breakfast" $output="text/plain"/>
|
||||||
|
|
||||||
|
<$transclude $variable="macro-buffalo" param="Going to dinner" $output="text/plain"/>
|
||||||
|
|
||||||
+
|
+
|
||||||
title: ExpectedResult
|
title: ExpectedResult
|
||||||
|
|
||||||
<p>Going to lunch with a buffalo</p><p>Going to lunch with a buffalo</p><p>Going to lunch with a buffalo</p>
|
<p>Going to lunch with a <strong>buffalo</strong></p><p>Going to breakfastwith a<strong>buffalo</strong></p><p>Going to dinner with a <strong>buffalo</strong></p>Going to lunch with a buffalo with a buffaloGoing to dinner with a buffalo
|
Loading…
Reference in New Issue
Block a user