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
24 lines
523 B
Ruby
24 lines
523 B
Ruby
require_relative "helper"
|
|
|
|
module Ruby
|
|
class TestStatement < MiniTest::Test
|
|
include RubyTests
|
|
|
|
def test_class_name
|
|
assert_equal "Statement" , Statement.new.class_name
|
|
end
|
|
def test_brother
|
|
assert_equal Sol::Statement , Statement.new.sol_brother
|
|
end
|
|
def test_yield
|
|
lst = compile( "yield")
|
|
assert_equal Sol::YieldStatement , lst.sol_brother
|
|
end
|
|
def test_assign
|
|
lst = compile( "a = 4")
|
|
assert_equal Sol::LocalAssignment , lst.sol_brother
|
|
end
|
|
|
|
end
|
|
end
|