some new tests

This commit is contained in:
pmario 2024-04-25 16:56:49 +02:00
parent 1a4c114ecb
commit d28271620b
5 changed files with 43 additions and 11 deletions

View File

@ -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 [<n>match[1]] %>
1
<% elseif [<n>remainder[2]match[1]] %>
<<n>> → <$transclude $variable="collatz" n = {{{ [<n>multiply[3]add[1]] }}}/>
<<n>> - ^^@@<<parent-ancestorcount>>@@^^ → <$transclude $variable="collatz" n = {{{ [<n>multiply[3]add[1]] }}}/>
<% else %>
<<n>> → <$transclude $variable="collatz" n = {{{ [<n>divide[2]] }}}/>
<<n>> - ^^@@<<parent-ancestorcount>>@@^^ → <$transclude $variable="collatz" n = {{{ [<n>divide[2]] }}}/>
<% endif %>
\end
\procedure test(x:10)
<<set_UNSAFE_max_widget_tree_depth 2000>>
<$transclude $variable=collatz n=<<x>>/>
\end
<<set_UNSAFE_max_widget_tree_depth 5000>>
<<test 77031>>
<<collatz 9780657630>>

View File

@ -0,0 +1,16 @@
created: 20240425123038613
modified: 20240425142745826
tags:
title: test-div
type: text/vnd.tiddlywiki
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10
<div><div><div><div><div><div><div><div><div><div>10

View File

@ -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: <<parent-ancestorcount>>
ancestor dom count: <<parent-ancestorcount-dom>>
UNSAFE_max_widget_tree_depth: <<get_UNSAFE_max_widget_tree_depth>>
<<set_UNSAFE_max_widget_tree_depth 2000>>

View File

@ -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
<<parent-ancestorcount-dom>>
<$button>
<$transclude/>
</$button>

View File

@ -1,10 +1,13 @@
created: 20240415124530887
modified: 20240416111839904
modified: 20240425142547412
tags:
title: test-recursive button
type: text/vnd.tiddlywiki
\whitespace trim
<<parent-ancestorcount-dom>>
<$button>
<$transclude/>
</$button>
</$button>