mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 02:10:27 +00:00
Change tiddler separator used in wikitext tests
Underscore looked ambiguous; I kept typing dashes by accident
This commit is contained in:
parent
56c2242e4e
commit
719a5614cb
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$genesis $type="let" myvar="Kitten">(<$text text=<<myvar>>/>)</$genesis>
|
||||
<$genesis $type="let" $$myvar="Kitten">(<$text text=<<$myvar>>/>)</$genesis>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>(Kitten)(Kitten)</p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$genesis $type="let" $names="myvar other" $values="Kitten Donkey" myvar="Shark">(<$text text=<<myvar>>/>|<$text text=<<other>>/>)</$genesis>
|
||||
<$genesis $type="let" $names="$myvar $other" $values="Kitten Donkey" $$myvar="Shark">(<$text text=<<$myvar>>/>|<$text text=<<$other>>/>)</$genesis>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>(Shark|Donkey)(Shark|Donkey)</p>
|
@ -21,11 +21,11 @@ title: Output
|
||||
(<$text text=<<$two>>/>)
|
||||
(<$text text=<<$$three>>/>)
|
||||
</$let>
|
||||
_
|
||||
+
|
||||
title: Definition
|
||||
|
||||
\whitespace trim
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>(--Elephant--)
|
||||
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$genesis $tag="div">Mouse</$genesis>
|
||||
<$genesis $tag="div" class="tc-thing" label="Squeak">Mouse</$genesis>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p><div>Mouse</div><div class="tc-thing" label="Squeak">Mouse</div></p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='Result'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: Actions
|
||||
|
||||
\whitespace trim
|
||||
@ -21,7 +21,7 @@ title: Actions
|
||||
<$action-mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$action-mywidget>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>Dingo</p>
|
@ -12,18 +12,18 @@ title: Output
|
||||
<$let test="Tiger">
|
||||
<$codeblock code=<<test>>/>
|
||||
</$let>
|
||||
_
|
||||
+
|
||||
title: Definition
|
||||
|
||||
\whitespace trim
|
||||
\function <$codeblock>(code)
|
||||
<$codeblock code={{{ [<code>addprefix[£]addsuffix[@]] }}}/>
|
||||
\end
|
||||
_
|
||||
+
|
||||
title: Subject
|
||||
|
||||
Python
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p><pre><code>£Kangaroo@</code></pre><pre><code>£Python@</code></pre><pre><code>£Tiger@</code></pre></p>
|
@ -8,11 +8,11 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerZero
|
||||
|
||||
Antelope
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -27,7 +27,7 @@ title: TiddlerOne
|
||||
<$transclude $tiddler="TiddlerZero">
|
||||
Crocodile
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>Antelope</p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -23,7 +23,7 @@ title: TiddlerOne
|
||||
<$mywidget one="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>DingoCrocodile</p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -23,7 +23,7 @@ title: TiddlerOne
|
||||
<$text text="Dingo">
|
||||
Crocodile
|
||||
</$text>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>DingoCrocodile</p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -23,7 +23,7 @@ title: TiddlerOne
|
||||
<$mywidget $variable="Dingo">
|
||||
Crocodile
|
||||
</$mywidget>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>DingoCrocodile</p>
|
@ -34,7 +34,7 @@ title: Output
|
||||
</$parameters>
|
||||
</$value>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -42,7 +42,7 @@ title: TiddlerOne
|
||||
Piranha
|
||||
<$text text=<<one>>/>
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>PiranhaFerretPiranhaFerretBadgerFerretBadgerFerret</p>
|
@ -11,7 +11,7 @@ title: Output
|
||||
{{TiddlerOne|Butterfly|Moth}}
|
||||
{{TiddlerOne|Beetle|Scorpion|Snake}}
|
||||
{{TiddlerOne||TiddlerTwo|Beetle|Scorpion|Snake}}
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -19,13 +19,13 @@ title: TiddlerOne
|
||||
<$list filter="[enlist<paramNames>]" counter="counter">
|
||||
{<$text text={{{ [enlist<paramNames>nth<counter>] }}}/>:<$text text={{{ [enlist<paramValues>nth<counter>] }}}/>}
|
||||
</$list>
|
||||
_
|
||||
+
|
||||
title: TiddlerTwo
|
||||
|
||||
\whitespace trim
|
||||
\parameters(zero:'Mouse',one:'Horse',two:'Owl')
|
||||
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p></p><p>{0:Ferret}</p><p>{0:Butterfly}{1:Moth}</p><p>{0:Beetle}{1:Scorpion}{2:Snake}</p><p>({zero:Beetle}{one:Scorpion}{two:Snake})</p>
|
@ -11,19 +11,19 @@ title: Output
|
||||
{{TiddlerOne|Butterfly|Moth}}
|
||||
{{TiddlerOne|Beetle|Scorpion|Snake}}
|
||||
{{TiddlerOne||TiddlerTwo|Beetle|Scorpion|Snake}}
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
\parameters(zero:Jaguar,one:'Lizard',two:'Mole')
|
||||
[{<$text text=<<zero>>/>}{<$text text=<<one>>/>}{<$text text=<<two>>/>}]
|
||||
_
|
||||
+
|
||||
title: TiddlerTwo
|
||||
|
||||
\whitespace trim
|
||||
\parameters(zero:'Mouse',one:Horse,two:'Owl')
|
||||
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>[{Jaguar}{Lizard}{Mole}]</p><p>[{Ferret}{Lizard}{Mole}]</p><p>[{Butterfly}{Moth}{Mole}]</p><p>[{Beetle}{Scorpion}{Snake}]</p><p>([{Beetle}{Scorpion}{Snake}])</p>
|
@ -11,19 +11,19 @@ title: Output
|
||||
{{TiddlerOne|Butterfly|Moth}}
|
||||
{{TiddlerOne|Beetle|Scorpion|Snake}}
|
||||
{{TiddlerOne||TiddlerTwo|Beetle|Scorpion|Snake}}
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<$parameters zero='Jaguar' one='Lizard' two='Mole'>[{<$text text=<<zero>>/>}{<$text text=<<one>>/>}{<$text text=<<two>>/>}]</$parameters>
|
||||
_
|
||||
+
|
||||
title: TiddlerTwo
|
||||
|
||||
\whitespace trim
|
||||
<$parameters zero='Mouse' one='Horse' two='Owl'>
|
||||
(<$transclude $tiddler=<<currentTiddler>> zero=<<zero>> one=<<one>> two=<<two>>/>)
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>[{Jaguar}{Lizard}{Mole}]</p><p>[{Ferret}{Lizard}{Mole}]</p><p>[{Butterfly}{Moth}{Mole}]</p><p>[{Beetle}{Scorpion}{Snake}]</p><p>([{Beetle}{Scorpion}{Snake}])</p>
|
@ -13,14 +13,14 @@ title: Output
|
||||
<$transclude $tiddler='TiddlerOne' zero='Ferret' 0='Pigeon'/>
|
||||
<$transclude zero='Ferret' 0='Pigeon' $tiddler='TiddlerOne'/>
|
||||
<$transclude $tiddler='TiddlerOne'/>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<$parameters zero='Jaguar'>
|
||||
<$text text=<<zero>>/>
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>FerretFerretPigeonPigeonFerretFerretJaguar</p>
|
@ -8,13 +8,13 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'/>
|
||||
<$transclude $tiddler='TiddlerOne'/>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
\parameters(one:'Jaguar')
|
||||
<$text text=<<one>>/>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>FerretJaguar</p>
|
@ -12,7 +12,7 @@ title: Output
|
||||
|
||||
<$transclude $variable='test' one='Ferret'/>
|
||||
<$transclude $variable='test'/>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>{Ferret}{Jaguar}</p>
|
@ -8,14 +8,14 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'/>
|
||||
<$transclude $tiddler='TiddlerOne'/>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
<$parameters one='Jaguar'>
|
||||
<$text text=<<one>>/>
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>FerretJaguar</p>
|
@ -8,7 +8,7 @@ title: Output
|
||||
\whitespace trim
|
||||
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -18,7 +18,7 @@ title: TiddlerOne
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>FerretWhale</p>
|
@ -11,7 +11,7 @@ title: Output
|
||||
Hippopotamus
|
||||
</$value>
|
||||
</$transclude>
|
||||
_
|
||||
+
|
||||
title: TiddlerOne
|
||||
|
||||
\whitespace trim
|
||||
@ -21,7 +21,7 @@ title: TiddlerOne
|
||||
Whale
|
||||
</$slot>
|
||||
</$parameters>
|
||||
_
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>FerretHippopotamus</p>
|
@ -49,7 +49,7 @@ describe("Wiki-based tests", function() {
|
||||
});
|
||||
|
||||
function readMultipleTiddlersTiddler(title) {
|
||||
var rawTiddlers = $tw.wiki.getTiddlerText(title).split("\n_\n");
|
||||
var rawTiddlers = $tw.wiki.getTiddlerText(title).split("\n+\n");
|
||||
var tiddlers = [];
|
||||
$tw.utils.each(rawTiddlers,function(rawTiddler) {
|
||||
var fields = Object.create(null),
|
||||
|
Loading…
Reference in New Issue
Block a user