From c983b1cba579df7ba7694b70141d5a6c80da8dee Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 18 May 2015 10:51:37 +0300 Subject: [PATCH] bit of test cleaning --- test/virtual/test_all.rb | 1 + test/virtual/test_conversion.rb | 58 ------------------------ test/virtual/{hello.rb => test_hello.rb} | 0 3 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 test/virtual/test_conversion.rb rename test/virtual/{hello.rb => test_hello.rb} (100%) diff --git a/test/virtual/test_all.rb b/test/virtual/test_all.rb index a5131f50..7049dba4 100644 --- a/test/virtual/test_all.rb +++ b/test/virtual/test_all.rb @@ -1,2 +1,3 @@ require_relative "test_basic" require_relative "test_methods" +require_relative "test_compat" diff --git a/test/virtual/test_conversion.rb b/test/virtual/test_conversion.rb deleted file mode 100644 index ff415eb0..00000000 --- a/test/virtual/test_conversion.rb +++ /dev/null @@ -1,58 +0,0 @@ -require_relative "../helper" - -class TestConversion < MiniTest::Test - - def pest_number - @string_input = '42 ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Integer)*^* :value Virtual::IntegerConstant(:integer => 42)" - check - end - - def pest_true - @string_input = 'true ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Reference)*^* :value Virtual::TrueConstant(:length => -1)" - check - end - def pest_false - @string_input = 'false ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Reference)*^* :value Virtual::FalseConstant(:length => -1)" - check - end - def pest_nil - @string_input = 'nil ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Reference)*^* :value Virtual::NilConstant(:length => -1)" - check - end - - def pest_name - @string_input = 'foo ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Mystery)" - check - end - - def pest_self - @string_input = 'self ' - @output = "-Virtual::Self(:index => 3, :type => Virtual::Mystery)" - check - end - - def pest_instance_variable - @string_input = '@foo_bar ' - @output = "-Virtual::Return(:index => 5, :type => Virtual::Mystery)" - check - end - - def pest_module_name - @string_input = 'FooBar ' - @output = nil - check - end - - def test_string - string = "hello" - word = Virtual.new_word string - assert_equal word , Virtual.new_word(string) - assert_equal string , word.to_s - end - -end diff --git a/test/virtual/hello.rb b/test/virtual/test_hello.rb similarity index 100% rename from test/virtual/hello.rb rename to test/virtual/test_hello.rb