create new subdirs in test
This commit is contained in:
parent
7e1c0d7f57
commit
4b2d0330ae
@ -31,7 +31,7 @@ module Parser
|
||||
include Operators
|
||||
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) }
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "parser_helper"
|
||||
require_relative "../parser_helper"
|
||||
|
||||
class TestRoot < MiniTest::Test
|
||||
# include the magic (setup and parse -> test method translation), see there
|
@ -1,14 +1,2 @@
|
||||
|
||||
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_root"
|
||||
require_relative "test_while"
|
||||
require_relative "unit/test_all"
|
||||
require_relative "roots/test_root"
|
||||
|
13
test/unit/test_all.rb
Normal file
13
test/unit/test_all.rb
Normal 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"
|
@ -1,4 +1,4 @@
|
||||
require_relative "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_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 "parser_helper"
|
||||
require_relative "../parser_helper"
|
||||
|
||||
# some cases that fail, and fail badly.
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "parser_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 "parser_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 "parser_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 "parser_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 "parser_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