more layout tests, seeing class names on stdout
This commit is contained in:
parent
9fd7c79cfb
commit
6cd95ee933
@ -16,9 +16,18 @@ class TestLayoutRT < MiniTest::Test
|
|||||||
|
|
||||||
def test_get_class
|
def test_get_class
|
||||||
@string_input = "return get_class()"
|
@string_input = "return get_class()"
|
||||||
check_return_class Parfait::Layout
|
check_return_class Parfait::Class
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_puts_class
|
||||||
|
@string_input = <<HERE
|
||||||
|
Class c = get_class()
|
||||||
|
Word w = c.get_name()
|
||||||
|
w.putstring()
|
||||||
|
HERE
|
||||||
|
@stdout = "Space"
|
||||||
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user