[commit: ghc] master: base: Add a test for T10412 (da74385)
git at git.haskell.org
git at git.haskell.org
Fri Apr 20 22:05:15 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/da7438526e4bfb1821aa77a22ff66a4a80baf8c6/ghc
>---------------------------------------------------------------
commit da7438526e4bfb1821aa77a22ff66a4a80baf8c6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Fri Apr 20 13:54:04 2018 -0400
base: Add a test for T10412
Expects the current behavior, will be updated by D4593 to reflect
desired behavior.
Reviewers: hvr
Subscribers: thomie, carter
GHC Trac Issues: #10412
Differential Revision: https://phabricator.haskell.org/D4610
>---------------------------------------------------------------
da7438526e4bfb1821aa77a22ff66a4a80baf8c6
libraries/base/tests/T10412.hs | 7 +++++++
.../should_run/T9858c.stdout => libraries/base/tests/T10412.stdout | 2 ++
libraries/base/tests/all.T | 1 +
3 files changed, 10 insertions(+)
diff --git a/libraries/base/tests/T10412.hs b/libraries/base/tests/T10412.hs
new file mode 100644
index 0000000..9657ef7
--- /dev/null
+++ b/libraries/base/tests/T10412.hs
@@ -0,0 +1,7 @@
+import Data.Char
+
+main :: IO ()
+main = do
+ print $ isMark '\768'
+ print $ isAlphaNum '\768'
+ print $ (isAlpha '\768', isNumber '\768')
diff --git a/testsuite/tests/typecheck/should_run/T9858c.stdout b/libraries/base/tests/T10412.stdout
similarity index 58%
copy from testsuite/tests/typecheck/should_run/T9858c.stdout
copy to libraries/base/tests/T10412.stdout
index 78a8f06..b243ae6 100644
--- a/testsuite/tests/typecheck/should_run/T9858c.stdout
+++ b/libraries/base/tests/T10412.stdout
@@ -1 +1,3 @@
+True
+True
(False,False)
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index 06c7350..0db147e 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -222,3 +222,4 @@ test('T3474',
only_ways(['normal'])],
compile_and_run, ['-O'])
test('T14425', normal, compile_and_run, [''])
+test('T10412', normal, compile_and_run, [''])
More information about the ghc-commits
mailing list