fixed, all tests green

This commit is contained in:
Torsten Ruger 2014-06-04 20:51:25 +03:00
parent b1010577ab
commit a0502c6e1c
21 changed files with 83 additions and 36 deletions

View File

@ -5,6 +5,7 @@ gem "parslet"
# Add dependencies to develop your gem here. # Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc. # Include everything needed to run rake, tests, features, etc.
group :development do group :development do
gem "minitest"
gem "rdoc", "~> 3.12" gem "rdoc", "~> 3.12"
gem "bundler", "~> 1.0" gem "bundler", "~> 1.0"
gem "jeweler", "~> 2.0.1" gem "jeweler", "~> 2.0.1"

62
Gemfile.lock Normal file
View 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)

View File

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

View File

@ -0,0 +1,3 @@
require 'parslet'
require 'parser/crystal'
require 'parser/transform'

View File

@ -1,4 +1,4 @@
require_relative "../helper" require_relative "setup"
require "parslet/convenience" require "parslet/convenience"
# remove the line numbers on assert fails, so it's easy to copy paste the result as the expected result # remove the line numbers on assert fails, so it's easy to copy paste the result as the expected result

View File

@ -9,13 +9,13 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems" $stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code exit e.status_code
end end
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.dirname(__FILE__))
require 'parser' require 'parser'
require "minitest"
require "minitest/autorun" require "minitest/autorun"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestArguments < MiniTest::Test class TestArguments < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestBasic < MiniTest::Test class TestBasic < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestCallSite < MiniTest::Test class TestCallSite < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestClassDef < MiniTest::Test class TestClassDef < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestCompound < MiniTest::Test class TestCompound < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestConditional < MiniTest::Test class TestConditional < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestExpressions < MiniTest::Test class TestExpressions < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
# some cases that fail, and fail badly. # some cases that fail, and fail badly.

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestFunctionDefinition < MiniTest::Test class TestFunctionDefinition < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestModuleDef < MiniTest::Test class TestModuleDef < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestExpressions < MiniTest::Test class TestExpressions < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestReturn < MiniTest::Test class TestReturn < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestRoot < MiniTest::Test class TestRoot < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there

View File

@ -1,4 +1,4 @@
require_relative "helper" require_relative "parser_helper"
class TestWhile < MiniTest::Test class TestWhile < MiniTest::Test
# include the magic (setup and parse -> test method translation), see there # include the magic (setup and parse -> test method translation), see there