Skip to content

Commit

Permalink
Add proper test-case for for ddoc escape system.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejMitrovic committed Feb 12, 2013
1 parent 8f9ee7b commit 44b0c51
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
18 changes: 18 additions & 0 deletions test/compilable/ddoc9369.d
@@ -0,0 +1,18 @@
// PERMUTE_ARGS:
// EXTRA_SOURCES: /extra-files/ddoc9369.ddoc
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 9369

/**
Sample:
---
a=1;
writeln(&a);
!
?
---
*/
void foo() { }



3 changes: 3 additions & 0 deletions test/compilable/extra-files/ddoc9369.ddoc
@@ -0,0 +1,3 @@
ESCAPES = /&/AddressOf!/
/!/Exclamation/
/?/QuestionMark/
21 changes: 21 additions & 0 deletions test/compilable/extra-files/ddoc9369.html
@@ -0,0 +1,21 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>ddoc9369</title>
</head><body>
<h1>ddoc9369</h1>
<br><br>
<dl><dt><big><a name="foo"></a>void <u>foo</u>();
</big></dt>
<dd><b>Sample:</b><br>
<pre class="d_code">a=1;
writeln(AddressOf!a);
Exclamation
QuestionMark
</pre>
<br><br>

</dd>
</dl>

<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. </small>
</body></html>
5 changes: 0 additions & 5 deletions test/compilable/test9369.d

This file was deleted.

0 comments on commit 44b0c51

Please sign in to comment.