start with melon and tests

First step, create a basic class
This commit is contained in:
Torsten Ruger
2016-12-18 17:02:55 +02:00
parent b8cf72e729
commit 170d453a36
8 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1 @@
require_relative '../helper'

View File

@ -0,0 +1 @@
require_relative "test_class"

View File

@ -0,0 +1,17 @@
require_relative "helper"
module Melon
class TestClass < MiniTest::Test
def test_creates_class
Register.machine.boot
before = Parfait::Space.object_space.classes.length
@string_input = <<HERE
class Testing
end
HERE
Compiler.compile @string_input
assert_equal 1 , Parfait::Space.object_space.classes.length - before , "No classes created"
end
end
end

1
test/melon/helper.rb Normal file
View File

@ -0,0 +1 @@
require_relative '../helper'

1
test/melon/test_all.rb Normal file
View File

@ -0,0 +1 @@
require_relative "compiler/test_all"