aboutsummaryrefslogtreecommitdiff
path: root/tests/html-tests
diff options
context:
space:
mode:
authorSimon Hengel <simon.hengel@wiktory.org>2011-04-08 17:09:28 +0000
committerSimon Hengel <simon.hengel@wiktory.org>2011-04-08 17:09:28 +0000
commit6889ef69d6ffad53a292555615df2c2b336f93db (patch)
tree5a5bed955ecc1261aee6f88e8200f05b88627793 /tests/html-tests
parent3a048f0e823f21133ee7d24d066ddf6bd053379d (diff)
Add support for blank lines in the result of examples
Result lines that only contain the string "<BLANKLINE>" are treated as a blank line.
Diffstat (limited to 'tests/html-tests')
-rw-r--r--tests/html-tests/tests/Examples.hs5
-rw-r--r--tests/html-tests/tests/Examples.html.ref12
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/html-tests/tests/Examples.hs b/tests/html-tests/tests/Examples.hs
index 7b703428..c8c450f1 100644
--- a/tests/html-tests/tests/Examples.hs
+++ b/tests/html-tests/tests/Examples.hs
@@ -28,6 +28,11 @@ module Examples where
-- >>> isSpace 'a'
-- False
--
+-- >>> putStrLn "foo\n\nbar"
+-- foo
+-- <BLANKLINE>
+-- bar
+--
fib :: Integer -> Integer
fib 0 = 0
fib 1 = 1
diff --git a/tests/html-tests/tests/Examples.html.ref b/tests/html-tests/tests/Examples.html.ref
index 69b2fda4..61fcff1c 100644
--- a/tests/html-tests/tests/Examples.html.ref
+++ b/tests/html-tests/tests/Examples.html.ref
@@ -136,6 +136,18 @@ window.onload = function () {pageLoad();setSynopsis("mini_Examples.html");};
></strong
>False
</pre
+ ><pre class="screen"
+ ><code class="prompt"
+ >&gt;&gt;&gt; </code
+ ><strong class="userinput"
+ ><code
+ >putStrLn &quot;foo\n\nbar&quot;
+</code
+ ></strong
+ >foo
+
+bar
+</pre
></div
></div
></div