create new subdirs in test

This commit is contained in:
Torsten Ruger 2014-06-26 11:55:49 +03:00
parent 7e1c0d7f57
commit 4b2d0330ae
17 changed files with 30 additions and 29 deletions

View File

@ -31,7 +31,7 @@ module Parser
include Operators include Operators
include ModuleDef include ModuleDef
rule(:root_body) {(module_definition | class_definition | function_definition | expression | call_site )} rule(:root_body) {(module_definition | class_definition | function_definition | expression | call_site | basic_type )}
rule(:root) { root_body.repeat.as(:expression_list) } rule(:root) { root_body.repeat.as(:expression_list) }
end end
end end

View File

@ -1,4 +1,4 @@
require_relative "parser_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,14 +1,2 @@
require_relative "unit/test_all"
require_relative "test_arguments" require_relative "roots/test_root"
require_relative "test_basic"
require_relative "test_call_site"
require_relative "test_class"
require_relative "test_compound"
require_relative "test_conditional"
require_relative "test_expressions"
require_relative "test_function_definition"
require_relative "test_module"
require_relative "test_operators"
require_relative "test_return"
require_relative "test_root"
require_relative "test_while"

13
test/unit/test_all.rb Normal file
View File

@ -0,0 +1,13 @@
require_relative "test_arguments"
require_relative "test_basic"
require_relative "test_call_site"
require_relative "test_class"
require_relative "test_compound"
require_relative "test_conditional"
require_relative "test_expressions"
require_relative "test_function_definition"
require_relative "test_module"
require_relative "test_operators"
require_relative "test_return"
require_relative "test_while"

View File

@ -1,4 +1,4 @@
require_relative "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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