File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ describe "Lexer" do
366
366
token.type.should eq(:EOF )
367
367
end
368
368
369
- assert_syntax_error " /foo" , " unterminated regular expression"
369
+ assert_syntax_error " /foo" , " Unterminated regular expression"
370
370
assert_syntax_error " :\" foo" , " unterminated quoted symbol"
371
371
372
372
it " lexes utf-8 char" do
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ describe "Lexer string" do
231
231
token = lexer.next_token
232
232
state = token.delimiter_state
233
233
234
- expect_raises Crystal ::SyntaxException , /unterminated heredoc/ do
234
+ expect_raises Crystal ::SyntaxException , " Unterminated heredoc" do
235
235
loop do
236
236
token = lexer.next_string_token state
237
237
break if token.type == :DELIMITER_END
@@ -282,7 +282,7 @@ describe "Lexer string" do
282
282
it " raises on unexpected EOF while lexing heredoc" do
283
283
lexer = Lexer .new(" <<-aaa" )
284
284
285
- expect_raises Crystal ::SyntaxException , /unexpected EOF on heredoc identifier/ do
285
+ expect_raises Crystal ::SyntaxException , " Unexpected EOF on heredoc identifier" do
286
286
lexer.next_token
287
287
end
288
288
end
You can’t perform that action at this time.
0 commit comments