From d28271620be0347718715b2863460f91722f34dd Mon Sep 17 00:00:00 2001 From: pmario Date: Thu, 25 Apr 2024 16:56:49 +0200 Subject: [PATCH] some new tests --- editions/tw5.com/tiddlers/test-collatz.tid | 13 +++++-------- editions/tw5.com/tiddlers/test-div.tid | 16 ++++++++++++++++ .../tw5.com/tiddlers/test-new-set-get-macros.tid | 4 +++- .../tiddlers/test-recursive button limited.tid | 14 ++++++++++++++ .../tw5.com/tiddlers/test-recursive button.tid | 7 +++++-- 5 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 editions/tw5.com/tiddlers/test-div.tid create mode 100644 editions/tw5.com/tiddlers/test-recursive button limited.tid diff --git a/editions/tw5.com/tiddlers/test-collatz.tid b/editions/tw5.com/tiddlers/test-collatz.tid index a7f484171..58731f7f2 100644 --- a/editions/tw5.com/tiddlers/test-collatz.tid +++ b/editions/tw5.com/tiddlers/test-collatz.tid @@ -1,5 +1,5 @@ created: 20240415102801809 -modified: 20240418072358045 +modified: 20240425142244830 tags: title: test-collatz type: text/vnd.tiddlywiki @@ -8,15 +8,12 @@ type: text/vnd.tiddlywiki <% if [match[1]] %> 1 <% elseif [remainder[2]match[1]] %> - <> → <$transclude $variable="collatz" n = {{{ [multiply[3]add[1]] }}}/> + <> - ^^@@<>@@^^ → <$transclude $variable="collatz" n = {{{ [multiply[3]add[1]] }}}/> <% else %> - <> → <$transclude $variable="collatz" n = {{{ [divide[2]] }}}/> + <> - ^^@@<>@@^^ → <$transclude $variable="collatz" n = {{{ [divide[2]] }}}/> <% endif %> \end -\procedure test(x:10) -<> -<$transclude $variable=collatz n=<>/> -\end +<> -<> +<> diff --git a/editions/tw5.com/tiddlers/test-div.tid b/editions/tw5.com/tiddlers/test-div.tid new file mode 100644 index 000000000..a7f35c57f --- /dev/null +++ b/editions/tw5.com/tiddlers/test-div.tid @@ -0,0 +1,16 @@ +created: 20240425123038613 +modified: 20240425142745826 +tags: +title: test-div +type: text/vnd.tiddlywiki + +
10 +
10 +
10 +
10 +
10 +
10 +
10 +
10 +
10 +
10 diff --git a/editions/tw5.com/tiddlers/test-new-set-get-macros.tid b/editions/tw5.com/tiddlers/test-new-set-get-macros.tid index 9fa134aa0..1ffc14600 100644 --- a/editions/tw5.com/tiddlers/test-new-set-get-macros.tid +++ b/editions/tw5.com/tiddlers/test-new-set-get-macros.tid @@ -1,5 +1,5 @@ created: 20240417070900019 -modified: 20240418072413015 +modified: 20240425133540950 tags: title: test-new-set-get-macros type: text/vnd.tiddlywiki @@ -8,6 +8,8 @@ type: text/vnd.tiddlywiki ancestor count: <> +ancestor dom count: <> + UNSAFE_max_widget_tree_depth: <> <> diff --git a/editions/tw5.com/tiddlers/test-recursive button limited.tid b/editions/tw5.com/tiddlers/test-recursive button limited.tid new file mode 100644 index 000000000..0609507ea --- /dev/null +++ b/editions/tw5.com/tiddlers/test-recursive button limited.tid @@ -0,0 +1,14 @@ +created: 20240425142531569 +modified: 20240425142540369 +tags: +title: test-recursive button limited +type: text/vnd.tiddlywiki + +\whitespace trim +\define tv-limit-nested-buttons() yes + +<> + +<$button> +<$transclude/> + diff --git a/editions/tw5.com/tiddlers/test-recursive button.tid b/editions/tw5.com/tiddlers/test-recursive button.tid index 5e0399306..91fb039df 100644 --- a/editions/tw5.com/tiddlers/test-recursive button.tid +++ b/editions/tw5.com/tiddlers/test-recursive button.tid @@ -1,10 +1,13 @@ created: 20240415124530887 -modified: 20240416111839904 +modified: 20240425142547412 tags: title: test-recursive button type: text/vnd.tiddlywiki \whitespace trim + +<> + <$button> <$transclude/> - \ No newline at end of file +