Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
412c310b
Commit
412c310b
authored
May 08, 2011
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tests out of h98; directory now removed
parent
0ad3cf34
Changes
67
Hide whitespace changes
Inline
Side-by-side
Showing
67 changed files
with
63 additions
and
519 deletions
+63
-519
testsuite/tests/ghc-regress/parser/should_compile/EmptyDecls.hs
...ite/tests/ghc-regress/parser/should_compile/EmptyDecls.hs
+0
-0
testsuite/tests/ghc-regress/parser/should_compile/all.T
testsuite/tests/ghc-regress/parser/should_compile/all.T
+1
-0
testsuite/tests/ghc-regress/parser/should_fail/all.T
testsuite/tests/ghc-regress/parser/should_fail/all.T
+1
-0
testsuite/tests/ghc-regress/parser/should_fail/readFail047.hs
...suite/tests/ghc-regress/parser/should_fail/readFail047.hs
+2
-1
testsuite/tests/ghc-regress/parser/should_fail/readFail047.stderr
...e/tests/ghc-regress/parser/should_fail/readFail047.stderr
+2
-0
testsuite/tests/ghc-regress/parser/should_run/all.T
testsuite/tests/ghc-regress/parser/should_run/all.T
+2
-0
testsuite/tests/ghc-regress/parser/should_run/operator.hs
testsuite/tests/ghc-regress/parser/should_run/operator.hs
+23
-0
testsuite/tests/ghc-regress/parser/should_run/operator.stdout
...suite/tests/ghc-regress/parser/should_run/operator.stdout
+8
-0
testsuite/tests/ghc-regress/parser/should_run/operator2.hs
testsuite/tests/ghc-regress/parser/should_run/operator2.hs
+0
-0
testsuite/tests/ghc-regress/parser/should_run/operator2.stdout
...uite/tests/ghc-regress/parser/should_run/operator2.stdout
+0
-0
testsuite/tests/ghc-regress/programs/Queens/Makefile
testsuite/tests/ghc-regress/programs/Queens/Makefile
+3
-0
testsuite/tests/ghc-regress/programs/Queens/queens.hs
testsuite/tests/ghc-regress/programs/Queens/queens.hs
+0
-0
testsuite/tests/ghc-regress/programs/Queens/queens.stdout
testsuite/tests/ghc-regress/programs/Queens/queens.stdout
+0
-0
testsuite/tests/ghc-regress/programs/Queens/test.T
testsuite/tests/ghc-regress/programs/Queens/test.T
+6
-0
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
+1
-0
testsuite/tests/ghc-regress/typecheck/should_compile/tc249.hs
...suite/tests/ghc-regress/typecheck/should_compile/tc249.hs
+0
-0
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
+1
-0
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail208.hs
...uite/tests/ghc-regress/typecheck/should_fail/tcfail208.hs
+0
-0
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail208.stderr
.../tests/ghc-regress/typecheck/should_fail/tcfail208.stderr
+13
-0
testsuite/tests/h98/Array/largeArray.T
testsuite/tests/h98/Array/largeArray.T
+0
-12
testsuite/tests/h98/Array/largeArray.expect.stdout
testsuite/tests/h98/Array/largeArray.expect.stdout
+0
-1
testsuite/tests/h98/Array/largeArray.hs
testsuite/tests/h98/Array/largeArray.hs
+0
-10
testsuite/tests/h98/Directory/getDCs.T
testsuite/tests/h98/Directory/getDCs.T
+0
-16
testsuite/tests/h98/Directory/getDCs.hs
testsuite/tests/h98/Directory/getDCs.hs
+0
-9
testsuite/tests/h98/EmptyDecls/edecls.T
testsuite/tests/h98/EmptyDecls/edecls.T
+0
-12
testsuite/tests/h98/EmptyDecls/edecls.expect.stdout
testsuite/tests/h98/EmptyDecls/edecls.expect.stdout
+0
-1
testsuite/tests/h98/Enum/all.T
testsuite/tests/h98/Enum/all.T
+0
-22
testsuite/tests/h98/Enum/list.expected.stdout
testsuite/tests/h98/Enum/list.expected.stdout
+0
-1
testsuite/tests/h98/Enum/list.hs
testsuite/tests/h98/Enum/list.hs
+0
-2
testsuite/tests/h98/Enum/succ.expect.stdout
testsuite/tests/h98/Enum/succ.expect.stdout
+0
-1
testsuite/tests/h98/Enum/succ.hs
testsuite/tests/h98/Enum/succ.hs
+0
-1
testsuite/tests/h98/N+K/nplusk.T
testsuite/tests/h98/N+K/nplusk.T
+0
-12
testsuite/tests/h98/N+K/nplusk.expect.stdout
testsuite/tests/h98/N+K/nplusk.expect.stdout
+0
-1
testsuite/tests/h98/N+K/nplusk.hs
testsuite/tests/h98/N+K/nplusk.hs
+0
-15
testsuite/tests/h98/Queens/queens.T
testsuite/tests/h98/Queens/queens.T
+0
-12
testsuite/tests/h98/chr/chr1.T
testsuite/tests/h98/chr/chr1.T
+0
-12
testsuite/tests/h98/chr/chr1.expected.stdout
testsuite/tests/h98/chr/chr1.expected.stdout
+0
-1
testsuite/tests/h98/chr/chr1.hs
testsuite/tests/h98/chr/chr1.hs
+0
-10
testsuite/tests/h98/chr/testconfig.T
testsuite/tests/h98/chr/testconfig.T
+0
-13
testsuite/tests/h98/ctxsimpl/all.T
testsuite/tests/h98/ctxsimpl/all.T
+0
-24
testsuite/tests/h98/ctxsimpl/bad/testconfig.T
testsuite/tests/h98/ctxsimpl/bad/testconfig.T
+0
-16
testsuite/tests/h98/fields/all.T
testsuite/tests/h98/fields/all.T
+0
-54
testsuite/tests/h98/fields/empty.hs
testsuite/tests/h98/fields/empty.hs
+0
-9
testsuite/tests/h98/fields/operator.expected.stdout
testsuite/tests/h98/fields/operator.expected.stdout
+0
-2
testsuite/tests/h98/fields/operator.hs
testsuite/tests/h98/fields/operator.hs
+0
-11
testsuite/tests/h98/fields/puns.hs
testsuite/tests/h98/fields/puns.hs
+0
-5
testsuite/tests/h98/fields/puns/testconfig.T
testsuite/tests/h98/fields/puns/testconfig.T
+0
-16
testsuite/tests/h98/fields/showread.expect.stdout
testsuite/tests/h98/fields/showread.expect.stdout
+0
-2
testsuite/tests/h98/fields/showread.hs
testsuite/tests/h98/fields/showread.hs
+0
-18
testsuite/tests/h98/fields/type.expect.stdout
testsuite/tests/h98/fields/type.expect.stdout
+0
-1
testsuite/tests/h98/fields/type.hs
testsuite/tests/h98/fields/type.hs
+0
-15
testsuite/tests/h98/float/show.T
testsuite/tests/h98/float/show.T
+0
-12
testsuite/tests/h98/float/show.hs
testsuite/tests/h98/float/show.hs
+0
-5
testsuite/tests/h98/identifiers/all.T
testsuite/tests/h98/identifiers/all.T
+0
-18
testsuite/tests/h98/identifiers/qual.hs
testsuite/tests/h98/identifiers/qual.hs
+0
-2
testsuite/tests/h98/identifiers/twiddle.hs
testsuite/tests/h98/identifiers/twiddle.hs
+0
-4
testsuite/tests/h98/infix/all.T
testsuite/tests/h98/infix/all.T
+0
-52
testsuite/tests/h98/infix/fndecl.hs
testsuite/tests/h98/infix/fndecl.hs
+0
-10
testsuite/tests/h98/infix/infix.expect.stdout
testsuite/tests/h98/infix/infix.expect.stdout
+0
-1
testsuite/tests/h98/infix/infix.hs
testsuite/tests/h98/infix/infix.hs
+0
-17
testsuite/tests/h98/infix/local.expect.stdout
testsuite/tests/h98/infix/local.expect.stdout
+0
-1
testsuite/tests/h98/infix/local.hs
testsuite/tests/h98/infix/local.hs
+0
-6
testsuite/tests/h98/infix/minus.expect.stdout
testsuite/tests/h98/infix/minus.expect.stdout
+0
-1
testsuite/tests/h98/infix/minus.hs
testsuite/tests/h98/infix/minus.hs
+0
-4
testsuite/tests/h98/layout/bad/testconfig.T
testsuite/tests/h98/layout/bad/testconfig.T
+0
-16
testsuite/tests/h98/layout/bad1.T
testsuite/tests/h98/layout/bad1.T
+0
-16
testsuite/tests/h98/run
testsuite/tests/h98/run
+0
-16
No files found.
testsuite/tests/
h98/EmptyDecls/ed
ecls.hs
→
testsuite/tests/
ghc-regress/parser/should_compile/EmptyD
ecls.hs
View file @
412c310b
File moved
testsuite/tests/ghc-regress/parser/should_compile/all.T
View file @
412c310b
...
...
@@ -88,3 +88,4 @@ test('DoAndIfThenElse', normal, compile, [''])
test
('
NondecreasingIndentation
',
normal
,
compile
,
[''])
test
('
mc15
',
normal
,
compile
,
[''])
test
('
mc16
',
expect_broken_for
(
4370
,
['
ghci
','
hpc
']),
compile
,
[''])
test
('
EmptyDecls
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
412c310b
...
...
@@ -49,6 +49,7 @@ test('readFail042', normal, compile_fail, [''])
test
('
readFail043
',
normal
,
compile_fail
,
[''])
test
('
readFail044
',
normal
,
compile_fail
,
[''])
test
('
readFail046
',
normal
,
compile_fail
,
[''])
test
('
readFail047
',
normal
,
compile_fail
,
[''])
test
('
T3095
',
normal
,
compile_fail
,
[''])
test
('
T3153
',
normal
,
compile_fail
,
[''])
test
('
T3751
',
normal
,
compile_fail
,
[''])
...
...
testsuite/tests/
h98/layout/bad1
.hs
→
testsuite/tests/
ghc-regress/parser/should_fail/readFail047
.hs
View file @
412c310b
module
ShouldFail
where
foo
=
let
x
=
(
1
,
2
y
=
3
in
fst
x
+
y
main
=
print
foo
testsuite/tests/ghc-regress/parser/should_fail/readFail047.stderr
0 → 100644
View file @
412c310b
readFail047.hs:6:5: parse error (possibly incorrect indentation)
testsuite/tests/ghc-regress/parser/should_run/all.T
View file @
412c310b
...
...
@@ -3,3 +3,5 @@ test('readRun002', normal, compile_and_run, [''])
test
('
readRun003
',
normal
,
compile_and_run
,
[''])
test
('
readRun004
',
expect_broken_for
(
1257
,
['
ghci
']),
compile_and_run
,
[''])
test
('
T1344
',
normal
,
compile_and_run
,
[''])
test
('
operator
',
normal
,
compile_and_run
,
[''])
test
('
operator2
',
normal
,
compile_and_run
,
[''])
testsuite/tests/ghc-regress/parser/should_run/operator.hs
0 → 100644
View file @
412c310b
module
Main
where
data
Hash
=
Hash
{
(
#
)
::
Int
}
deriving
(
Show
,
Read
)
main
=
do
let
h
=
Hash
3
s
=
show
h
x
=
read
s
::
Hash
y
=
show
x
print
h
putStrLn
s
print
x
putStrLn
y
let
h'
=
Hash
{
(
#
)
=
3
}
s'
=
show
h'
x'
=
read
s'
::
Hash
y'
=
show
x'
print
h'
putStrLn
s'
print
x'
putStrLn
y'
testsuite/tests/ghc-regress/parser/should_run/operator.stdout
0 → 100644
View file @
412c310b
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
Hash {(#) = 3}
testsuite/tests/
h98/infix/operator
.hs
→
testsuite/tests/
ghc-regress/parser/should_run/operator2
.hs
View file @
412c310b
File moved
testsuite/tests/
h98/infix/operator.expect
.stdout
→
testsuite/tests/
ghc-regress/parser/should_run/operator2
.stdout
View file @
412c310b
File moved
testsuite/tests/ghc-regress/programs/Queens/Makefile
0 → 100644
View file @
412c310b
TOP
=
../../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
testsuite/tests/
h98
/Queens/queens.hs
→
testsuite/tests/
ghc-regress/programs
/Queens/queens.hs
View file @
412c310b
File moved
testsuite/tests/
h98/Queens/queens.expect
.stdout
→
testsuite/tests/
ghc-regress/programs/Queens/queens
.stdout
View file @
412c310b
File moved
testsuite/tests/ghc-regress/programs/Queens/test.T
0 → 100644
View file @
412c310b
test
('
queens
',
[
skip_if_fast
,
extra_clean
(['
Main.hi
',
'
Main.o
'])],
compile_and_run
,
[''])
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
View file @
412c310b
...
...
@@ -345,3 +345,4 @@ test('T4969', normal, compile, [''])
test
('
T5120
',
normal
,
compile
,
[''])
test
('
mc18
',
expect_broken_for
(
4370
,
['
hpc
']),
compile
,
[''])
test
('
tc249
',
normal
,
compile
,
[''])
testsuite/tests/
h98/ctxsimpl/ok1
.hs
→
testsuite/tests/
ghc-regress/typecheck/should_compile/tc249
.hs
View file @
412c310b
File moved
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
412c310b
...
...
@@ -236,4 +236,5 @@ test('mc24', normal, compile_fail, [''])
test
('
mc25
',
normal
,
compile_fail
,
[''])
test
('
tcfail207
',
normal
,
compile_fail
,
[''])
test
('
T5084
',
normal
,
compile_fail
,
[''])
test
('
tcfail208
',
normal
,
compile_fail
,
[''])
testsuite/tests/
h98/ctxsimpl/bad1
.hs
→
testsuite/tests/
ghc-regress/typecheck/should_fail/tcfail208
.hs
View file @
412c310b
File moved
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail208.stderr
0 → 100644
View file @
412c310b
tcfail208.hs:4:19:
Could not deduce (Eq (m a)) arising from a use of `=='
from the context (Monad m, Eq a)
bound by the type signature for
f :: (Monad m, Eq a) => a -> m a -> Bool
at tcfail208.hs:4:1-23
Possible fix:
add (Eq (m a)) to the context of
the type signature for f :: (Monad m, Eq a) => a -> m a -> Bool
or add an instance declaration for (Eq (m a))
In the expression: (return x == y)
In an equation for `f': f x y = (return x == y)
testsuite/tests/h98/Array/largeArray.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
largeArray
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/Array/largeArray.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
11
testsuite/tests/h98/Array/largeArray.hs
deleted
100644 → 0
View file @
0ad3cf34
import
Array
main
=
print
(((
!
1
)
.
inc
.
inc
.
inc
.
inc
.
inc
.
inc
.
inc
.
inc
.
inc
.
inc
)
a
)
size
=
60
a
::
Array
Int
Integer
a
=
listArray
(
1
,
size
)
[
1
..
]
inc
a
=
accum
(
+
)
a
[(
i
,
1
)
|
i
<-
[
1
..
size
]]
testsuite/tests/h98/Directory/getDCs.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
getDCs
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
--
sigh
$stuff
=
contents
(
qualify
("
run.stdout
"))
pass
when
$stuff
contains
"
bin
"
&&
$stuff
contains
"
lib
"
&&
$stuff
contains
"
include
"
fail
when
otherwise
}
testsuite/tests/h98/Directory/getDCs.hs
deleted
100644 → 0
View file @
0ad3cf34
import
Directory
main
=
do
-- We can no longer first ask what the current dir is and
-- then read its contents, because the results thereof depend
-- on the current directory at the time the test run was
-- started, and that can't be assumed to be any particular value.
fs
<-
getDirectoryContents
"/usr"
mapM_
(
\
f
->
putStrLn
(
" "
++
f
))
fs
testsuite/tests/h98/EmptyDecls/edecls.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
edecls
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
\ No newline at end of file
testsuite/tests/h98/EmptyDecls/edecls.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
True
testsuite/tests/h98/Enum/all.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
list
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expected.stdout
"))
fail
when
otherwise
}
test
"
succ
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/Enum/list.expected.stdout
deleted
100644 → 0
View file @
0ad3cf34
[1 % 1]
testsuite/tests/h98/Enum/list.hs
deleted
100644 → 0
View file @
0ad3cf34
import
Ratio
main
=
print
[
1
,
4
%
(
3
::
Int
)
..
1
]
testsuite/tests/h98/Enum/succ.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
1.0e20
testsuite/tests/h98/Enum/succ.hs
deleted
100644 → 0
View file @
0ad3cf34
main
=
print
(
succ
(
1.0e20
))
testsuite/tests/h98/N+K/nplusk.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
nplusk
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/N+K/nplusk.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
fib 10 = 89
testsuite/tests/h98/N+K/nplusk.hs
deleted
100644 → 0
View file @
0ad3cf34
import
System
fib
::
Integer
->
Integer
fib
0
=
1
fib
1
=
1
fib
(
n
+
2
)
=
fib
(
n
+
1
)
+
fib
n
--fib n = fib (n-1) + fib (n-2)
main
=
do
args
<-
getArgs
if
null
args
then
putStrLn
(
"fib 10 = "
++
show
(
fib
10
))
else
mapM_
(
\
arg
->
putStrLn
(
"fib "
++
arg
++
" = "
++
show
(
fib
(
read
arg
))))
args
testsuite/tests/h98/Queens/queens.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
queens
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/chr/chr1.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
chr1
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expected.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/chr/chr1.expected.stdout
deleted
100644 → 0
View file @
0ad3cf34
True
testsuite/tests/h98/chr/chr1.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Main
where
main
=
let
zzz
=
(
toEnum
(
qqq
256
))
::
Char
in
putStrLn
(
show
(
zzz
==
zzz
))
-- Only here to defeat potential compile-time evaluation of
-- toEnum applied to literal arg, in excessively clever compilers
qqq
::
Int
->
Int
qqq
0
=
0
qqq
n
=
1
+
qqq
(
n
-
1
)
testsuite/tests/h98/chr/testconfig.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../std-macros.T
")
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
("
run.stdout
")
contains
"
True
"
fail
when
otherwise
testsuite/tests/h98/ctxsimpl/all.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
ok1
"
{
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
contents
(
qualify
("
comp.stdout
"))
==
""
fail
when
otherwise
}
test
"
bad1
"
{
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
$tool
contains
"
ghc
"
&&
contents
(
qualify
("
comp.stdout
"))
contains
"
Could not deduce
"
pass
when
$tool
contains
"
nhc
"
&&
contents
(
qualify
("
comp.stdout
"))
contains
"
Couldn't simplify the context
"
fail
when
otherwise
}
testsuite/tests/h98/ctxsimpl/bad/testconfig.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../std-macros.T
")
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
$tool
contains
"
ghc
"
&&
contents
("
comp.stdout
")
contains
"
Could not deduce
"
pass
when
$tool
contains
"
nhc
"
&&
contents
("
comp.stdout
")
contains
"
Couldn't simplify the context
"
fail
when
otherwise
testsuite/tests/h98/fields/all.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
empty
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
"
True
\n
"
fail
when
otherwise
}
test
"
operator
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expected.stdout
"))
fail
when
otherwise
}
test
"
puns
"
{
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
$tool
contains
"
ghc
"
&&
contents
(
qualify
("
comp.stdout
"))
contains
"
parse error on input
"
pass
when
$tool
contains
"
nhc
"
&&
contents
(
qualify
("
comp.stdout
"))
contains
"
Named field puns
"
fail
when
otherwise
}
test
"
showread
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
test
"
type
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/fields/empty.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Main
where
data
T
=
T1
Int
Int
Int
|
T2
Float
Float
Float
f
(
T1
{})
=
True
f
(
T2
{})
=
False
main
=
print
(
f
(
T1
1
2
3
))
testsuite/tests/h98/fields/operator.expected.stdout
deleted
100644 → 0
View file @
0ad3cf34
Hash{(#)=3}
Hash{(#)=3}
testsuite/tests/h98/fields/operator.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Main
where
data
Hash
=
Hash
{
(
#
)
::
Int
}
deriving
(
Show
,
Read
)
main
=
do
putStrLn
s
print
(
read
s
::
Hash
)
where
s
=
show
(
Hash
3
)
testsuite/tests/h98/fields/puns.hs
deleted
100644 → 0
View file @
0ad3cf34
data
Point
=
Point
{
x
,
y
::
Int
}
deriving
Show
f
(
Point
{
x
,
y
})
=
Point
{
x
,
y
=
y
+
1
}
main
=
print
(
f
(
Point
{
x
=
0
,
y
=
0
}))
testsuite/tests/h98/fields/puns/testconfig.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../std-macros.T
")
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
$tool
contains
"
ghc
"
&&
contents
("
comp.stdout
")
contains
"
parse error on input
"
pass
when
$tool
contains
"
nhc
"
&&
contents
("
comp.stdout
")
contains
"
Named field puns
"
fail
when
otherwise
testsuite/tests/h98/fields/showread.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
(Foo{foo=1,bar=99},Foo{foo=(),bar=99},Foo{foo=True,bar=99})
(Foo{foo=1,bar=99},Foo{foo=(),bar=99},Foo{foo=True,bar=99})
testsuite/tests/h98/fields/showread.hs
deleted
100644 → 0
View file @
0ad3cf34
data
Foo
a
=
Foo
{
foo
::
a
,
bar
::
Int
}
deriving
(
Show
,
Read
)
up
s
t
=
s
{
foo
=
t
}
obj
=
Foo
{
foo
=
1
::
Int
,
bar
=
99
}
main
=
let
expr
=
(
obj
,
up
obj
()
,
obj
{
foo
=
True
}
)
in
do
print
expr
print
(((
read
.
show
)
expr
)
`
asTypeOf
`
expr
)
testsuite/tests/h98/fields/type.expect.stdout
deleted
100644 → 0
View file @
0ad3cf34
(Foo{foo=1,bar=99},Foo{foo=(),bar=99},Foo{foo=True,bar=99})
testsuite/tests/h98/fields/type.hs
deleted
100644 → 0
View file @
0ad3cf34
data
Foo
a
=
Foo
{
foo
::
a
,
bar
::
Int
}
deriving
Show
up
s
t
=
s
{
foo
=
t
}
obj
=
Foo
{
foo
=
1
::
Int
,
bar
=
99
}
main
=
print
(
obj
,
up
obj
()
,
obj
{
foo
=
True
}
)
testsuite/tests/h98/float/show.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
show
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stderr
"))
contains
"
Prelude.read: no parse
"
fail
when
otherwise
}
testsuite/tests/h98/float/show.hs
deleted
100644 → 0
View file @
0ad3cf34
import
Numeric
main
=
do
s
<-
return
""
putStrLn
(
showFloat
((
read
s
)
::
Float
)
""
)
testsuite/tests/h98/identifiers/all.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
qual
"
{
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
contents
(
qualify
("
comp.stdout
"))
==
""
fail
when
otherwise
}
test
"
twiddle
"
{
expect
pass
pretest_cleanup
()
$res
=
simple_compile_Main
()
pass
when
contents
(
qualify
("
comp.stdout
"))
==
""
fail
when
otherwise
}
\ No newline at end of file
testsuite/tests/h98/identifiers/qual.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Test
where
f
=
Just
.
let
x
=
id
in
x
testsuite/tests/h98/identifiers/twiddle.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Twiddle
where
main
=
let
foo
@
(
~
(
x
,
y
))
=
(
1
,
2
)
in
print
foo
testsuite/tests/h98/infix/all.T
deleted
100644 → 0
View file @
0ad3cf34
include
(
$confdir
++
"
/../singlefile-macros.T
")
test
"
fndecl
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expected.stdout
"))
fail
when
otherwise
}
test
"
infix
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
test
"
local
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
test
"
minus
"
{
expect
unknown
--
should
this
compile
or
not
?
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
test
"
operator
"
{
expect
pass
pretest_cleanup
()
simple_build_Main
()
$res
=
simple_run_main_no_stdin
()
pass
when
contents
(
qualify
("
run.stdout
"))
==
contents
(
qualify
("
expect.stdout
"))
fail
when
otherwise
}
testsuite/tests/h98/infix/fndecl.hs
deleted
100644 → 0
View file @
0ad3cf34
module
Main
where
infixr
5
<>
(
<>
)
::
(
a
->
Maybe
b
)
->
(
b
->
Maybe
c
)
->
(
a
->
Maybe
c
)
(
m1
<>
m2
)
a1
=
case
m1
a1
of
Nothing
->