From 1c2b6d103c2b80e247cd8e5a13ccd81cd3048cc0 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sat, 14 Jan 2017 20:10:34 +0200 Subject: [PATCH] move one more test file --- test/melon/compilers/helper.rb | 12 ------------ test/melon/compilers/test_all.rb | 1 - test/melon/helper.rb | 12 ++++++++++++ test/melon/test_all.rb | 1 + .../test_class_creation.rb => test_compiler.rb} | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) rename test/melon/{compilers/test_class_creation.rb => test_compiler.rb} (94%) diff --git a/test/melon/compilers/helper.rb b/test/melon/compilers/helper.rb index 4b370847..3f91a123 100644 --- a/test/melon/compilers/helper.rb +++ b/test/melon/compilers/helper.rb @@ -1,13 +1 @@ require_relative '../helper' - -module Melon - module CompilerHelper - def in_Space(statements) - "class Space ; #{statements} ; end" - end - - def as_main(statements) - in_Space("def main ; #{statements}; end") - end - end -end diff --git a/test/melon/compilers/test_all.rb b/test/melon/compilers/test_all.rb index 544c2946..e0604a89 100644 --- a/test/melon/compilers/test_all.rb +++ b/test/melon/compilers/test_all.rb @@ -1,4 +1,3 @@ require_relative "test_type_collector" require_relative "test_method_collector" require_relative "test_locals_collector" -require_relative "test_class_creation" diff --git a/test/melon/helper.rb b/test/melon/helper.rb index 3f91a123..4b370847 100644 --- a/test/melon/helper.rb +++ b/test/melon/helper.rb @@ -1 +1,13 @@ require_relative '../helper' + +module Melon + module CompilerHelper + def in_Space(statements) + "class Space ; #{statements} ; end" + end + + def as_main(statements) + in_Space("def main ; #{statements}; end") + end + end +end diff --git a/test/melon/test_all.rb b/test/melon/test_all.rb index 528780c1..fc832cce 100644 --- a/test/melon/test_all.rb +++ b/test/melon/test_all.rb @@ -1,3 +1,4 @@ require_relative "compilers/test_all" require_relative "fragments/test_all" require_relative "test_ruby_method" +require_relative "test_compiler" diff --git a/test/melon/compilers/test_class_creation.rb b/test/melon/test_compiler.rb similarity index 94% rename from test/melon/compilers/test_class_creation.rb rename to test/melon/test_compiler.rb index ea5fb6ad..81c75a43 100644 --- a/test/melon/compilers/test_class_creation.rb +++ b/test/melon/test_compiler.rb @@ -1,7 +1,7 @@ require_relative "helper" module Melon - class TestClass < MiniTest::Test + class TestCompiler < MiniTest::Test def setup Register.machine.boot