rubyx/test/melon/compiler/test_class.rb
Torsten Ruger 170d453a36 start with melon and tests
First step, create a basic class
2016-12-18 17:02:55 +02:00

18 lines
395 B
Ruby

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