Skip to content

Commit 449cb77

Browse files
straight-shootajhass
authored andcommittedDec 19, 2017
Fixup #5409: Add missing lexer specs
1 parent 993916a commit 449cb77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎spec/compiler/lexer/lexer_spec.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ describe "Lexer" do
366366
token.type.should eq(:EOF)
367367
end
368368

369-
assert_syntax_error "/foo", "unterminated regular expression"
369+
assert_syntax_error "/foo", "Unterminated regular expression"
370370
assert_syntax_error ":\"foo", "unterminated quoted symbol"
371371

372372
it "lexes utf-8 char" do

‎spec/compiler/lexer/lexer_string_spec.cr

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ describe "Lexer string" do
231231
token = lexer.next_token
232232
state = token.delimiter_state
233233

234-
expect_raises Crystal::SyntaxException, /unterminated heredoc/ do
234+
expect_raises Crystal::SyntaxException, "Unterminated heredoc" do
235235
loop do
236236
token = lexer.next_string_token state
237237
break if token.type == :DELIMITER_END
@@ -282,7 +282,7 @@ describe "Lexer string" do
282282
it "raises on unexpected EOF while lexing heredoc" do
283283
lexer = Lexer.new("<<-aaa")
284284

285-
expect_raises Crystal::SyntaxException, /unexpected EOF on heredoc identifier/ do
285+
expect_raises Crystal::SyntaxException, "Unexpected EOF on heredoc identifier" do
286286
lexer.next_token
287287
end
288288
end

0 commit comments

Comments
 (0)
Please sign in to comment.