From bb6cef20b82ef7a7f2d49f3ef6dc1a7ce880b5f0 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Tue, 9 Jul 2013 14:24:10 +0100 Subject: One pass parser and tests. We remove the HTML test as it is no longer necessary. We cover the test case in spec tests and other HTML tests but keeping this around fails: this is because the new parser has different semantics there. In fact, I suspect the original behaviour was a bug that wasn't caught/fixed but simply included as-is during the testing. --- html-test/src/DeprecationMessageParseError.hs | 12 ------------ html-test/src/TitledPicture.hs | 7 +++++++ html-test/src/Unicode.hs | 6 ++++++ html-test/src/Unicode.hs.disabled | 6 ------ 4 files changed, 13 insertions(+), 18 deletions(-) delete mode 100644 html-test/src/DeprecationMessageParseError.hs create mode 100644 html-test/src/TitledPicture.hs create mode 100644 html-test/src/Unicode.hs delete mode 100644 html-test/src/Unicode.hs.disabled (limited to 'html-test/src') diff --git a/html-test/src/DeprecationMessageParseError.hs b/html-test/src/DeprecationMessageParseError.hs deleted file mode 100644 index 2f8fb492..00000000 --- a/html-test/src/DeprecationMessageParseError.hs +++ /dev/null @@ -1,12 +0,0 @@ --- | --- What is tested here: --- --- * If parsing of a deprecation message fails, the message is included --- verbatim. --- -module DeprecationMessageParseError where - --- | some documentation for foo -foo :: Int -foo = 23 -{-# DEPRECATED foo "use @bar instead" #-} diff --git a/html-test/src/TitledPicture.hs b/html-test/src/TitledPicture.hs new file mode 100644 index 00000000..7029d98a --- /dev/null +++ b/html-test/src/TitledPicture.hs @@ -0,0 +1,7 @@ +module TitledPicture where + +-- | Picture for 'foo' without a title <> +foo = 5 + +-- | Picture for 'bar' with title <> +bar = 6 diff --git a/html-test/src/Unicode.hs b/html-test/src/Unicode.hs new file mode 100644 index 00000000..d5bbf445 --- /dev/null +++ b/html-test/src/Unicode.hs @@ -0,0 +1,6 @@ +module Unicode where + +-- | γλώσσα +x :: Int +x = 1 + diff --git a/html-test/src/Unicode.hs.disabled b/html-test/src/Unicode.hs.disabled deleted file mode 100644 index d5bbf445..00000000 --- a/html-test/src/Unicode.hs.disabled +++ /dev/null @@ -1,6 +0,0 @@ -module Unicode where - --- | γλώσσα -x :: Int -x = 1 - -- cgit v1.2.3