fixed, all tests green
This commit is contained in:
parent
b1010577ab
commit
a0502c6e1c
1
Gemfile
1
Gemfile
@ -5,6 +5,7 @@ gem "parslet"
|
||||
# Add dependencies to develop your gem here.
|
||||
# Include everything needed to run rake, tests, features, etc.
|
||||
group :development do
|
||||
gem "minitest"
|
||||
gem "rdoc", "~> 3.12"
|
||||
gem "bundler", "~> 1.0"
|
||||
gem "jeweler", "~> 2.0.1"
|
||||
|
62
Gemfile.lock
Normal file
62
Gemfile.lock
Normal file
@ -0,0 +1,62 @@
|
||||
GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
addressable (2.3.6)
|
||||
blankslate (2.1.2.4)
|
||||
builder (3.2.2)
|
||||
descendants_tracker (0.0.4)
|
||||
thread_safe (~> 0.3, >= 0.3.1)
|
||||
faraday (0.9.0)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
git (1.2.6)
|
||||
github_api (0.11.3)
|
||||
addressable (~> 2.3)
|
||||
descendants_tracker (~> 0.0.1)
|
||||
faraday (~> 0.8, < 0.10)
|
||||
hashie (>= 1.2)
|
||||
multi_json (>= 1.7.5, < 2.0)
|
||||
nokogiri (~> 1.6.0)
|
||||
oauth2
|
||||
hashie (2.1.1)
|
||||
highline (1.6.21)
|
||||
jeweler (2.0.1)
|
||||
builder
|
||||
bundler (>= 1.0)
|
||||
git (>= 1.2.5)
|
||||
github_api
|
||||
highline (>= 1.6.15)
|
||||
nokogiri (>= 1.5.10)
|
||||
rake
|
||||
rdoc
|
||||
json (1.8.1)
|
||||
jwt (1.0.0)
|
||||
mini_portile (0.6.0)
|
||||
minitest (5.3.2)
|
||||
multi_json (1.9.2)
|
||||
multi_xml (0.5.5)
|
||||
multipart-post (2.0.0)
|
||||
nokogiri (1.6.2.1)
|
||||
mini_portile (= 0.6.0)
|
||||
oauth2 (0.9.4)
|
||||
faraday (>= 0.8, < 0.10)
|
||||
jwt (~> 1.0)
|
||||
multi_json (~> 1.3)
|
||||
multi_xml (~> 0.5)
|
||||
rack (~> 1.2)
|
||||
parslet (1.6.1)
|
||||
blankslate (~> 2.0)
|
||||
rack (1.5.2)
|
||||
rake (10.3.2)
|
||||
rdoc (3.12.2)
|
||||
json (~> 1.4)
|
||||
thread_safe (0.3.4)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
bundler (~> 1.0)
|
||||
jeweler (~> 2.0.1)
|
||||
minitest
|
||||
parslet
|
||||
rdoc (~> 3.12)
|
19
README.rdoc
19
README.rdoc
@ -1,19 +0,0 @@
|
||||
= crystal-reader
|
||||
|
||||
Description goes here.
|
||||
|
||||
== Contributing to crystal-reader
|
||||
|
||||
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
||||
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
||||
* Fork the project.
|
||||
* Start a feature/bugfix branch.
|
||||
* Commit and push until you are happy with your contribution.
|
||||
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
||||
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
||||
|
||||
== Copyright
|
||||
|
||||
Copyright (c) 2014 Torsten Ruger. See LICENSE.txt for
|
||||
further details.
|
||||
|
@ -0,0 +1,3 @@
|
||||
require 'parslet'
|
||||
require 'parser/crystal'
|
||||
require 'parser/transform'
|
@ -1,4 +1,4 @@
|
||||
require_relative "../helper"
|
||||
require_relative "setup"
|
||||
require "parslet/convenience"
|
||||
|
||||
# remove the line numbers on assert fails, so it's easy to copy paste the result as the expected result
|
@ -9,13 +9,13 @@ rescue Bundler::BundlerError => e
|
||||
$stderr.puts "Run `bundle install` to install missing gems"
|
||||
exit e.status_code
|
||||
end
|
||||
require 'test/unit'
|
||||
require 'shoulda'
|
||||
|
||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
||||
|
||||
require 'parser'
|
||||
|
||||
require "minitest"
|
||||
require "minitest/autorun"
|
||||
|
||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestArguments < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestBasic < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestCallSite < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestClassDef < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestCompound < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestConditional < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestExpressions < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
# some cases that fail, and fail badly.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestFunctionDefinition < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestModuleDef < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestExpressions < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestReturn < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestRoot < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "helper"
|
||||
require_relative "parser_helper"
|
||||
|
||||
class TestWhile < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
||||
|
Loading…
Reference in New Issue
Block a user