Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6712db1

Browse files
committed
Use ruby-syntax-fixtures
1 parent f62b60c commit 6712db1

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "spec"]
55
path = spec/ruby
66
url = git@github.com:ruby/spec.git
7+
[submodule "test/ruby-syntax-fixtures"]
8+
path = test/ruby-syntax-fixtures
9+
url = https://github.com/ruby-syntax-tree/ruby-syntax-fixtures

test/ruby-syntax-fixtures

Submodule ruby-syntax-fixtures added at 5b333f5

test/ruby_syntax_fixtures_test.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "test_helper"
4+
5+
module SyntaxTree
6+
class RubySyntaxFixturesTest < Minitest::Test
7+
Dir[File.expand_path("ruby-syntax-fixtures/**/*.rb", __dir__)].each do |file|
8+
define_method "test_ruby_syntax_fixtures_#{file}" do
9+
refute_nil(SyntaxTree.parse(SyntaxTree.read(file)))
10+
end
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)