Skip to content

Commit

Permalink
[PRISM] Enable newline test
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 2, 2024
1 parent 0968b46 commit 0981f03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion test/prism/newline_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
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
Expand Down

0 comments on commit 0981f03

Please sign in to comment.