[Git][ghc/ghc][wip/T25609] Add some more tests
Brandon Chinn (@brandonchinn178)
gitlab at gitlab.haskell.org
Wed Jan 22 02:44:50 UTC 2025
Brandon Chinn pushed to branch wip/T25609 at Glasgow Haskell Compiler / GHC
Commits:
839e56e9 by Brandon Chinn at 2025-01-21T18:44:41-08:00
Add some more tests
- - - - -
4 changed files:
- testsuite/tests/parser/should_run/NumericUnderscores0.hs
- testsuite/tests/parser/should_run/NumericUnderscores0.stdout
- testsuite/tests/parser/should_run/T25609.hs
- testsuite/tests/parser/should_run/T25609.stdout
Changes:
=====================================
testsuite/tests/parser/should_run/NumericUnderscores0.hs
=====================================
@@ -99,3 +99,6 @@ main = do
0x_ff == 0xff,
0x__ff == 0xff
]
+
+ -- ensure that strings are unaffected
+ print ["\o16_000", "\16_000", "\x16_000"]
=====================================
testsuite/tests/parser/should_run/NumericUnderscores0.stdout
=====================================
@@ -11,3 +11,4 @@
[True,True,True]
[True,True,True]
[True,True,True,True,True,True,True,True,True,True,True,True,True,True,True]
+["\SO_000","\DLE_000","\SYN_000"]
=====================================
testsuite/tests/parser/should_run/T25609.hs
=====================================
@@ -24,3 +24,11 @@ main = do
"""
+
+ -- strings with unicode
+ print """
+ ★
+ ★
+ ★
+ ★
+ """
=====================================
testsuite/tests/parser/should_run/T25609.stdout
=====================================
@@ -12,3 +12,4 @@
"-- $ test"
" "
"\n"
+" ★\n★\n ★\n★"
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/839e56e9d985ae4d3acda74a99fd2c6e072e7d29
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/839e56e9d985ae4d3acda74a99fd2c6e072e7d29
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250121/dfaef7c2/attachment-0001.html>
More information about the ghc-commits
mailing list