Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c5b901fc
Commit
c5b901fc
authored
Aug 21, 2002
by
simonmar
Browse files
[project @ 2002-08-21 10:48:02 by simonmar]
Add test for large character values in literals, along with Char.ord.
parent
22ee7305
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/lib/should_run/all.T
View file @
c5b901fc
test
('
char001
',
normal
,
compile_and_run
,
[''])
test
('
char002
',
normal
,
compile_and_run
,
[''])
test
('
rand001
',
normal
,
compile_and_run
,
[''])
test
('
show001
',
normal
,
compile_and_run
,
[''])
test
('
text001
',
normal
,
compile_and_run
,
[''])
...
...
testsuite/tests/ghc-regress/lib/should_run/char002.hs
0 → 100644
View file @
c5b901fc
-- !!! tests for large character values in literals
import
Char
main
=
do
print
(
ord
'
\xffff
'
)
print
(
ord
'
\o7777
'
)
print
(
ord
'
\65535
'
)
print
(
map
ord
"
\xffff\o7777\65535
"
)
testsuite/tests/ghc-regress/lib/should_run/char002.stdout
0 → 100644
View file @
c5b901fc
65535
4095
65535
[65535,4095,65535]
Write
Preview
Supports
Markdown
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