Skip to content

Commit b97a646

Browse files
committed
Fill up display tests for block strings
1 parent 1ed8860 commit b97a646

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

juniper/src/parser/lexer.rs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,28 @@ mod test {
15691569
))),
15701570
r#""string with \\ escape and \" quote""#,
15711571
),
1572-
// TODO: Tests for `Block` string.
1572+
(
1573+
Token::Scalar(ScalarToken::String(Block(
1574+
r#""""string with \\ escape and \" quote""""#,
1575+
))),
1576+
r#""""string with \\ escape and \" quote""""#,
1577+
),
1578+
(
1579+
Token::Scalar(ScalarToken::String(Block(
1580+
r#""""block string with \\ escape and \" quote""""#,
1581+
))),
1582+
r#""""block string with \\ escape and \" quote""""#,
1583+
),
1584+
(
1585+
Token::Scalar(ScalarToken::String(Block(
1586+
r#""""block
1587+
multiline
1588+
string"""#,
1589+
))),
1590+
r#""""block
1591+
multiline
1592+
string"""#,
1593+
),
15731594
(Token::ExclamationMark, "!"),
15741595
(Token::Dollar, "$"),
15751596
(Token::ParenOpen, "("),

0 commit comments

Comments
 (0)