Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
d0fbffab
Commit
d0fbffab
authored
May 17, 2006
by
Don Stewart
Browse files
update expected output. tougher replicate test.
parent
8622fdf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/lib/Data.ByteString/bytestring001.hs
View file @
d0fbffab
...
...
@@ -396,11 +396,9 @@ prop_findSubstrings s x l
naive_findSubstrings
p
s
=
[
x
|
x
<-
[
0
..
length
s
],
p
`
isPrefixOf
`
drop
x
s
]
prop_replicate1
n
c
=
(
n
>=
0
)
==>
unpack
(
P
.
replicate
n
c
)
==
replicate
n
c
prop_replicate2
n
c
=
(
n
>=
0
)
==>
P
.
replicate
n
c
==
P
.
unfoldrN
n
(
\
u
->
Just
(
u
,
u
))
c
prop_replicate3
c
=
unpack
(
P
.
replicate
0
c
)
==
replicate
0
c
...
...
testsuite/tests/ghc-regress/lib/Data.ByteString/bytestring001.stdout
View file @
d0fbffab
...
...
@@ -98,8 +98,8 @@ copy : 01234567891011121314151617181920
inits : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
tails : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
findSubstrings : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
replicate1 :
0
012
23
345678910
10
1112131
31415
1516171
718181819191920212121
21222324
2424
25262728
2828282828
293031
3131
3233343
43
435353535363738383838394040414242424343434445454646464647484949495050515152535354555657585960606060606162626364646566676767
676869
6969
70717
171717273737374757575757575757677787878787979798081818181
818283848586
86
878889
899090919191929393949595959696969696969797
979899OK, 100 tests.
replicate2 :
0
012
23
345678910
10
1112131
31415
1516171
718181819191920212121
21222324
2424
25262728
2828282828
293031
3131
3233343
43
435353535363738383838394040414242424343434445454646464647484949495050515152535354555657585960606060606162626364646566676767
676869
6969
70717
171717273737374757575757575757677787878787979798081818181
818283848586
86
878889
899090919191929393949595959696969696969797
979899OK, 100 tests.
replicate1 : 0123456789101112131
4
1516171
81920
21222324252627282930313233343
536373839404142434445464748495051525354555657585960616263646566
67686970717
27374757677787980
818283848586878889
90919293949596
979899OK, 100 tests.
replicate2 : 0123456789101112131
4
1516171
81920
21222324252627282930313233343
536373839404142434445464748495051525354555657585960616263646566
67686970717
27374757677787980
818283848586878889
90919293949596
979899OK, 100 tests.
replicate3 : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
readint : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
readint2 : 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899OK, 100 tests.
...
...
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