1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00

add test tiddlers for easy testing

This commit is contained in:
pmario 2024-04-16 11:55:01 +02:00
parent 0b89992bca
commit 838c4639a0
5 changed files with 70 additions and 4 deletions

View File

@ -0,0 +1,25 @@
created: 20240415102801809
draft.of: test-collatz
draft.title: test-collatz
modified: 20240416094922377
tags:
title: Draft of 'test-collatz'
type: text/vnd.tiddlywiki
\procedure collatz(n)
<% if [<n>match[1]] %>
1
<% elseif [<n>remainder[2]match[1]] %>
<<n>> <$button>→</$button> <$transclude $variable="collatz" n = {{{ [<n>multiply[3]add[1]] }}}/>
<% else %>
<<n>> <$button>→</$button> <$transclude $variable="collatz" n = {{{ [<n>divide[2]] }}}/>
<% endif %>
\end
\procedure test(x:10)
<$let tv-UNSAFE-max-widget-tree-depth="2000">
<$transclude $variable=collatz n=<<x>>/>
</$let>
\end
<<test 77031>>

View File

@ -0,0 +1,11 @@
created: 20240415124530887
draft.of: test-recursive button
draft.title: test-recursive button
modified: 20240416094919710
tags:
title: Draft of 'test-recursive button'
type: text/vnd.tiddlywiki
<$button>
<$transclude/>
</$button>

View File

@ -1,8 +1,6 @@
created: 20131127215321439 created: 20131127215321439
modified: 20140912135951542 modified: 20240416092903807
title: $:/DefaultTiddlers title: $:/DefaultTiddlers
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
HelloThere [list[$:/StoryList]]
GettingStarted
Community

View File

@ -0,0 +1,23 @@
created: 20240415102801809
modified: 20240416092855340
tags:
title: test-collatz
type: text/vnd.tiddlywiki
\procedure collatz(n)
<% if [<n>match[1]] %>
1
<% elseif [<n>remainder[2]match[1]] %>
<<n>> <$button>→</$button> <$transclude $variable="collatz" n = {{{ [<n>multiply[3]add[1]] }}}/>
<% else %>
<<n>> <$button>→</$button> <$transclude $variable="collatz" n = {{{ [<n>divide[2]] }}}/>
<% endif %>
\end
\procedure test(x:10)
<$let tv-UNSAFE-max-widget-tree-depth="2000">
<$transclude $variable=collatz n=<<x>>/>
</$let>
\end
<<test 77031>>

View File

@ -0,0 +1,9 @@
created: 20240415124530887
modified: 20240416092728701
tags:
title: test-recursive button
type: text/vnd.tiddlywiki
<$button>
<$transclude/>
</$button>