Skip to content

Commit 27a9948

Browse files
Copilotyegor256
andcommitted
Consolidate Unicode surrogate pair tests into existing 'just parses' test block
Co-authored-by: yegor256 <[email protected]>
1 parent 14fc90e commit 27a9948

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/ParserSpec.hs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ spec = do
3737
("{[[foo ↦ QQ]]}", Just (Program (ExFormation [BiTau (AtLabel "foo") (ExDispatch (ExDispatch ExGlobal (AtLabel "org")) (AtLabel "eolang")), BiVoid AtRho])))
3838
]
3939

40-
describe "parse unicode surrogate pairs" $
41-
forM_
42-
[ "{⟦ j$org ↦ \"org/eolang/larger/\\uD835\\uDF11\" ⟧}",
43-
"Q -> \"\\uD835\\uDF11\""
44-
]
45-
(\prog -> it prog (parseProgram prog `shouldSatisfy` isRight))
46-
4740
describe "parse expression" $
4841
test
4942
parseExpression
@@ -249,7 +242,9 @@ spec = do
249242
"⟦x ↦ Φ.org.eolang(z ↦ ξ.f, x ↦ α0, φ ↦ ρ, t ↦ φ, first ↦ ⟦ λ ⤍ Function_name, Δ ⤍ 42- ⟧)⟧",
250243
"[[x -> 1.00e+3, y -> 2.32e-4]]",
251244
"[[ x -> \"\\u0001\\u0001\"]]",
252-
"[[ x -> \"\\uD835\\uDF11\"]]"
245+
"[[ x -> \"\\uD835\\uDF11\"]]",
246+
"{⟦ j$org ↦ \"org/eolang/larger/\\uD835\\uDF11\" ⟧}",
247+
"Q -> \"\\uD835\\uDF11\""
253248
]
254249
(\expr -> it expr (parseExpression expr `shouldSatisfy` isRight))
255250

0 commit comments

Comments
 (0)