forked from TiddlyWiki/TiddlyWiki5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some passing macro definition parsing tests
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Macros/EndInBody | ||
description: \end line starting with non-whitespace is part of macro body | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\define hello() | ||
hello \end | ||
\end | ||
|
||
Out: <<hello>> | ||
+ | ||
title: ExpectedResult | ||
|
||
<p>Out: hello \end</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Macros/IndentedEnd | ||
description: \end line starting with whitespace ends a macro body | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\define hello() | ||
hello \end | ||
\end | ||
|
||
Out: <<hello>> | ||
+ | ||
title: ExpectedResult | ||
|
||
<p>Out: hello \end</p> |
16 changes: 16 additions & 0 deletions
16
editions/test/tiddlers/tests/data/macros/MismatchedNamedEnd.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Macros/MismatchedNamedEnd | ||
description: Mismatched named end is part of the body | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\define hello() | ||
\end goodbye | ||
\end | ||
|
||
Out: <<hello>> | ||
+ | ||
title: ExpectedResult | ||
|
||
<p>Out: \end goodbye</p> |