[PRISM] Enable newline test
This commit is contained in:
parent
0968b462b6
commit
0981f03008
2
.github/workflows/prism.yml
vendored
2
.github/workflows/prism.yml
vendored
@ -92,7 +92,7 @@ jobs:
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
GNUMAKEFLAGS: ''
|
||||
RUBY_TESTOPTS: '-q --tty=no --excludes-dir="../src/test/.excludes-prism" --exclude="error_highlight/test_error_highlight.rb" --exclude="prism/encoding_test.rb" --exclude="prism/newline_test.rb"'
|
||||
RUBY_TESTOPTS: '-q --tty=no --excludes-dir="../src/test/.excludes-prism" --exclude="error_highlight/test_error_highlight.rb" --exclude="prism/encoding_test.rb"'
|
||||
RUN_OPTS: ${{ matrix.run_opts }}
|
||||
|
||||
- name: make test-prism-spec
|
||||
|
@ -7,7 +7,14 @@ return unless defined?(RubyVM::InstructionSequence)
|
||||
module Prism
|
||||
class NewlineTest < TestCase
|
||||
base = File.expand_path("../", __FILE__)
|
||||
filepaths = Dir["*.rb", base: base] - %w[encoding_test.rb errors_test.rb parser_test.rb static_literals_test.rb unescape_test.rb]
|
||||
filepaths = Dir["*.rb", base: base] - %w[
|
||||
encoding_test.rb
|
||||
errors_test.rb
|
||||
parser_test.rb
|
||||
regexp_test.rb
|
||||
static_literals_test.rb
|
||||
unescape_test.rb
|
||||
]
|
||||
|
||||
filepaths.each do |relative|
|
||||
define_method("test_newline_flags_#{relative}") do
|
||||
|
Loading…
x
Reference in New Issue
Block a user