mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-13 05:19:58 +00:00
add test tiddlers for easy testing
This commit is contained in:
parent
0b89992bca
commit
838c4639a0
25
editions/tw5.com/tiddlers/Draft of 'test-collatz'.tid
Normal file
25
editions/tw5.com/tiddlers/Draft of 'test-collatz'.tid
Normal 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>>
|
@ -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>
|
@ -1,8 +1,6 @@
|
||||
created: 20131127215321439
|
||||
modified: 20140912135951542
|
||||
modified: 20240416092903807
|
||||
title: $:/DefaultTiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
HelloThere
|
||||
GettingStarted
|
||||
Community
|
||||
[list[$:/StoryList]]
|
23
editions/tw5.com/tiddlers/test-collatz.tid
Normal file
23
editions/tw5.com/tiddlers/test-collatz.tid
Normal 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>>
|
9
editions/tw5.com/tiddlers/test-recursive button.tid
Normal file
9
editions/tw5.com/tiddlers/test-recursive button.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240415124530887
|
||||
modified: 20240416092728701
|
||||
tags:
|
||||
title: test-recursive button
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<$button>
|
||||
<$transclude/>
|
||||
</$button>
|
Loading…
Reference in New Issue
Block a user