diff options
author | Kevin Newton <[email protected]> | 2024-05-02 10:54:11 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-05-02 12:29:25 -0400 |
commit | 0981f03008563cbfbf01112898b8f89077ee0d29 (patch) | |
tree | 34b7c6f13ae0b900d5903655905faf06a676e074 | |
parent | 0968b462b626c139a9619b028af8bf0bf0d906e9 (diff) |
[PRISM] Enable newline test
-rw-r--r-- | .github/workflows/prism.yml | 2 | ||||
-rw-r--r-- | test/prism/newline_test.rb | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/prism.yml b/.github/workflows/prism.yml index 128fb87d28..600bc8fc55 100644 --- a/.github/workflows/prism.yml +++ b/.github/workflows/prism.yml @@ -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 diff --git a/test/prism/newline_test.rb b/test/prism/newline_test.rb index e9975b346e..d31fb89bc6 100644 --- a/test/prism/newline_test.rb +++ b/test/prism/newline_test.rb @@ -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 |