Skip to content

Commit 6ad051e

Browse files
committed
Update tests for not replacing in block strings
1 parent 7ecc6cf commit 6ad051e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/graphql/language/lexer_examples.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def self.included(child_mod)
8888
let(:query_string) { %|{ a(b: """\nc\n \\""" d\n""" """""e""""")}|}
8989

9090
it "tokenizes them" do
91-
assert_equal "c\n \"\"\" d", tokens[5].value
91+
assert_equal "c\n \\\"\"\" d", tokens[5].value
9292
assert_equal "\"\"e\"\"", tokens[6].value
9393
end
9494

@@ -119,7 +119,7 @@ def self.included(child_mod)
119119
GRAPHQL
120120

121121
tokens = subject.tokenize(query_str)
122-
assert_equal ['text', ':', 'b\\', 'otherText', ':', 'a',], tokens.map(&:value)
122+
assert_equal ['text', ':', 'b\\\\', 'otherText', ':', 'a',], tokens.map(&:value)
123123
end
124124
end
125125

@@ -192,7 +192,7 @@ def self.included(child_mod)
192192
tokens = subject.tokenize doc
193193
token = tokens.first
194194
assert_equal :STRING, token.name
195-
assert_equal 'string with """', token.value
195+
assert_equal 'string with \"""', token.value
196196
end
197197

198198
it "counts block string line properly" do

0 commit comments

Comments
 (0)