[PRISM] Enable newline test

This commit is contained in:
Kevin Newton 2024-05-02 10:54:11 -04:00
parent 0968b462b6
commit 0981f03008
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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