Torsten Rüger
d1f8733623
Simple is really the descriptive name for the layer Sure, it is "virtual" but that is not as important as the fact that it is simple (or simplified) Also objct (based really) is better, since orientated implies it is a little like that, but only orientated, not really it. Sol only has objects, nothing else Just cause i was renaming anyway
35 lines
1002 B
Ruby
35 lines
1002 B
Ruby
require_relative "helper"
|
|
|
|
module Ruby
|
|
class TestSendRequireHelper < MiniTest::Test
|
|
include RubyTests
|
|
def setup
|
|
@lst = compile( "require_relative 'helper'").to_sol
|
|
end
|
|
def test_helper_class
|
|
assert_equal Sol::ClassExpression , @lst.class
|
|
assert_equal :ParfaitTest , @lst.name
|
|
end
|
|
def test_methods
|
|
assert_equal Sol::Statements , @lst.body.class
|
|
assert_equal Sol::MethodExpression , @lst.body.first.class
|
|
assert_equal :setup , @lst.body.first.name
|
|
end
|
|
end
|
|
class TestSendRequireparfait < MiniTest::Test
|
|
include RubyTests
|
|
def setup
|
|
@lst = compile( "require_relative 'object'").to_sol
|
|
end
|
|
def test_helper_class
|
|
assert_equal Sol::ClassExpression , @lst.class
|
|
assert_equal :Object , @lst.name
|
|
end
|
|
def test_methods
|
|
assert_equal Sol::Statements , @lst.body.class
|
|
assert_equal Sol::MethodExpression , @lst.body.first.class
|
|
assert_equal :type , @lst.body.first.name
|
|
end
|
|
end
|
|
end
|