From d4ab427ceb7ed8f44fde00f83e8c2ceb935d0ed3 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 21 Jan 2023 21:04:43 +0000 Subject: [PATCH] Refactor wikified function tests --- .../data/functions/WikifiedFunctions.tid | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid b/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid index bed0c17fb..1835b756a 100644 --- a/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid +++ b/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid @@ -6,25 +6,31 @@ tags: [[$:/tags/wiki-test-spec]] title: Output \whitespace trim -\function fn-buffalo(p) -[

addsuffix[ with a buffalo]] +\function fn-buffalo(param) +[addsuffix[ with a ''buffalo'']] \end -\procedure proc-buffalo(p) -<$text text={{{ [

addsuffix[ with a buffalo]] }}}/> +\procedure proc-buffalo(param) +<> with a ''buffalo'' \end -\define macro-buffalo(p) -$p$ with a buffalo +\define macro-buffalo(param) +$param$ with a ''buffalo'' \end <> -<> +<> -<> +<> + +<$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 -

Going to lunch with a buffalo

Going to lunch with a buffalo

Going to lunch with a buffalo

\ No newline at end of file +

Going to lunch with a buffalo

Going to breakfastwith abuffalo

Going to dinner with a buffalo

Going to lunch with a buffalo with a buffaloGoing to dinner with a buffalo \ No newline at end of file