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
f1d0e49f
Commit
f1d0e49f
authored
Jul 15, 2019
by
Ben Gamari
🐢
Committed by
Marge Bot
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: Add tests for #16943
parent
8e2fe575
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
0 deletions
+23
-0
libraries/base/tests/T16943a.hs
libraries/base/tests/T16943a.hs
+6
-0
libraries/base/tests/T16943a.stdout
libraries/base/tests/T16943a.stdout
+2
-0
libraries/base/tests/T16943b.hs
libraries/base/tests/T16943b.hs
+11
-0
libraries/base/tests/T16943b.stdout
libraries/base/tests/T16943b.stdout
+2
-0
libraries/base/tests/all.T
libraries/base/tests/all.T
+2
-0
No files found.
libraries/base/tests/T16943a.hs
0 → 100644
View file @
f1d0e49f
module
Main
(
main
)
where
scoreWeek
=
scanr
(
:
)
[]
$
repeat
True
main
=
seq
scoreWeek
(
putStrLn
"good"
)
libraries/base/tests/T16943a.stdout
0 → 100644
View file @
f1d0e49f
good
libraries/base/tests/T16943b.hs
0 → 100644
View file @
f1d0e49f
module
Main
(
main
)
where
scoreWeek
::
[
Int
]
->
[[
Int
]]
scoreWeek
xs
=
take
168
$
scanr
(
:
)
[]
-- $ take (3*168)
$
cycle
xs
main
=
print
$
length
$
scoreWeek
[
1
,
2
..
168
]
libraries/base/tests/T16943b.stdout
0 → 100644
View file @
f1d0e49f
168
libraries/base/tests/all.T
View file @
f1d0e49f
...
@@ -251,3 +251,5 @@ test('T13896', normal, compile_and_run, [''])
...
@@ -251,3 +251,5 @@ test('T13896', normal, compile_and_run, [''])
test
('
T13167
',
fragile_for
(
16536
,
['
threaded2
']),
compile_and_run
,
[''])
test
('
T13167
',
fragile_for
(
16536
,
['
threaded2
']),
compile_and_run
,
[''])
test
('
T15349
',
[
exit_code
(
1
),
expect_broken_for
(
15349
,
['
ghci
'])],
compile_and_run
,
[''])
test
('
T15349
',
[
exit_code
(
1
),
expect_broken_for
(
15349
,
['
ghci
'])],
compile_and_run
,
[''])
test
('
T16111
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
T16111
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
T16943a
',
normal
,
compile_and_run
,
[''])
test
('
T16943b
',
normal
,
compile_and_run
,
[''])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment