From 15a71929f57b57036b503d271b23d4b75460a92c Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Thu, 12 Jan 2012 12:06:39 +0100 Subject: Add tests for module warnings --- tests/html-tests/tests/DeprecatedModule.hs | 5 ++ tests/html-tests/tests/DeprecatedModule.html.ref | 80 ++++++++++++++++++++++ tests/html-tests/tests/DeprecatedModule2.hs | 4 ++ tests/html-tests/tests/DeprecatedModule2.html.ref | 75 ++++++++++++++++++++ tests/html-tests/tests/ModuleWithWarning.hs | 5 ++ tests/html-tests/tests/ModuleWithWarning.html.ref | 80 ++++++++++++++++++++++ .../tests/mini_DeprecatedModule.html.ref | 31 +++++++++ .../tests/mini_DeprecatedModule2.html.ref | 31 +++++++++ .../tests/mini_ModuleWithWarning.html.ref | 31 +++++++++ 9 files changed, 342 insertions(+) create mode 100644 tests/html-tests/tests/DeprecatedModule.hs create mode 100644 tests/html-tests/tests/DeprecatedModule.html.ref create mode 100644 tests/html-tests/tests/DeprecatedModule2.hs create mode 100644 tests/html-tests/tests/DeprecatedModule2.html.ref create mode 100644 tests/html-tests/tests/ModuleWithWarning.hs create mode 100644 tests/html-tests/tests/ModuleWithWarning.html.ref create mode 100644 tests/html-tests/tests/mini_DeprecatedModule.html.ref create mode 100644 tests/html-tests/tests/mini_DeprecatedModule2.html.ref create mode 100644 tests/html-tests/tests/mini_ModuleWithWarning.html.ref diff --git a/tests/html-tests/tests/DeprecatedModule.hs b/tests/html-tests/tests/DeprecatedModule.hs new file mode 100644 index 00000000..61a09d64 --- /dev/null +++ b/tests/html-tests/tests/DeprecatedModule.hs @@ -0,0 +1,5 @@ +-- | Documentation for "DeprecatedModule". +module DeprecatedModule {-# DEPRECATED "Use Foo instead" #-} where + +foo :: Int +foo = 23 diff --git a/tests/html-tests/tests/DeprecatedModule.html.ref b/tests/html-tests/tests/DeprecatedModule.html.ref new file mode 100644 index 00000000..6f79f47c --- /dev/null +++ b/tests/html-tests/tests/DeprecatedModule.html.ref @@ -0,0 +1,80 @@ + +DeprecatedModule

 

Safe HaskellNone

DeprecatedModule

Description

Deprecated: Use Foo instead

Documentation for DeprecatedModule. +

Documentation

foo :: Int

diff --git a/tests/html-tests/tests/DeprecatedModule2.hs b/tests/html-tests/tests/DeprecatedModule2.hs new file mode 100644 index 00000000..94185297 --- /dev/null +++ b/tests/html-tests/tests/DeprecatedModule2.hs @@ -0,0 +1,4 @@ +module DeprecatedModule2 {-# DEPRECATED "Use Foo instead" #-} where + +foo :: Int +foo = 23 diff --git a/tests/html-tests/tests/DeprecatedModule2.html.ref b/tests/html-tests/tests/DeprecatedModule2.html.ref new file mode 100644 index 00000000..3a62c842 --- /dev/null +++ b/tests/html-tests/tests/DeprecatedModule2.html.ref @@ -0,0 +1,75 @@ + +DeprecatedModule2

 

Safe HaskellNone

DeprecatedModule2

Description

Deprecated: Use Foo instead

Documentation

foo :: Int

diff --git a/tests/html-tests/tests/ModuleWithWarning.hs b/tests/html-tests/tests/ModuleWithWarning.hs new file mode 100644 index 00000000..2114bac6 --- /dev/null +++ b/tests/html-tests/tests/ModuleWithWarning.hs @@ -0,0 +1,5 @@ +-- | Documentation for "ModuleWithWarning". +module ModuleWithWarning {-# WARNING "This is an unstable interface." #-} where + +foo :: Int +foo = 23 diff --git a/tests/html-tests/tests/ModuleWithWarning.html.ref b/tests/html-tests/tests/ModuleWithWarning.html.ref new file mode 100644 index 00000000..a0df1418 --- /dev/null +++ b/tests/html-tests/tests/ModuleWithWarning.html.ref @@ -0,0 +1,80 @@ + +ModuleWithWarning

 

Safe HaskellNone

ModuleWithWarning

Description

Warning: This is an unstable interface.

Documentation for ModuleWithWarning. +

Documentation

foo :: Int

diff --git a/tests/html-tests/tests/mini_DeprecatedModule.html.ref b/tests/html-tests/tests/mini_DeprecatedModule.html.ref new file mode 100644 index 00000000..bfdef611 --- /dev/null +++ b/tests/html-tests/tests/mini_DeprecatedModule.html.ref @@ -0,0 +1,31 @@ + +DeprecatedModule

DeprecatedModule

diff --git a/tests/html-tests/tests/mini_DeprecatedModule2.html.ref b/tests/html-tests/tests/mini_DeprecatedModule2.html.ref new file mode 100644 index 00000000..dbcc43b9 --- /dev/null +++ b/tests/html-tests/tests/mini_DeprecatedModule2.html.ref @@ -0,0 +1,31 @@ + +DeprecatedModule2

DeprecatedModule2

diff --git a/tests/html-tests/tests/mini_ModuleWithWarning.html.ref b/tests/html-tests/tests/mini_ModuleWithWarning.html.ref new file mode 100644 index 00000000..19315a14 --- /dev/null +++ b/tests/html-tests/tests/mini_ModuleWithWarning.html.ref @@ -0,0 +1,31 @@ + +ModuleWithWarning

ModuleWithWarning

-- cgit v1.2.3