spec/front_end/scanner_spec.rb in loxxy-0.0.27 vs spec/front_end/scanner_spec.rb in loxxy-0.0.28
- old
+ new
@@ -206,10 +206,11 @@
# No token found, except eof marker
eof_token = subject.tokens[0]
expect(eof_token.terminal).to eq('EOF')
end
+ # rubocop: disable Lint/PercentStringArray
it 'should skip end of line comments' do
input = <<-LOX_END
// first comment
print "ok"; // second comment
// third comment
@@ -221,9 +222,10 @@
%w[STRING "ok"],
%w[SEMICOLON ;]
]
match_expectations(subject, expectations)
end
+ # rubocop: enable Lint/PercentStringArray
it 'should cope with single slash (divide) expression' do
subject.start_with('8 / 2')
expectations = [