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 two failing tests to illustrate bug TiddlyWiki#3460
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
editions/test/tiddlers/tests/data/macros/WhitespaceOnlyWithEnd.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,18 @@ | ||
title: Macros/WhitespaceOnlyWithEnd | ||
description: The /end should be detected when macro definition contains only whitespace | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\define max() | ||
\end | ||
Nothing | ||
\end | ||
|
||
Out: <<max>> | ||
+ | ||
title: ExpectedResult | ||
|
||
<p>Nothing | ||
\end</p><p>Out: </p> |
15 changes: 15 additions & 0 deletions
15
editions/test/tiddlers/tests/data/macros/WhitespaceOnlyWithEnd2.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,15 @@ | ||
title: Macros/WhitespaceOnlyWithEnd2 | ||
description: Line with \end can start with whitespace | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\define empty() | ||
\end | ||
|
||
Out: <<empty>> | ||
+ | ||
title: ExpectedResult | ||
|
||
<p>Out: </p> |