init with nil layout
making the default length 1 (the nil layout)
This commit is contained in:
parent
701b0bc011
commit
3b268df920
@ -18,7 +18,7 @@ require "parfait/space"
|
|||||||
|
|
||||||
module FakeMem
|
module FakeMem
|
||||||
def initialize
|
def initialize
|
||||||
@memory = [0]
|
@memory = [0,nil]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -65,9 +65,6 @@ module Parfait
|
|||||||
class Parfait::Class
|
class Parfait::Class
|
||||||
end
|
end
|
||||||
class Parfait::List
|
class Parfait::List
|
||||||
def length
|
|
||||||
internal_object_length
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Functions to generate parfait objects
|
# Functions to generate parfait objects
|
||||||
|
@ -7,7 +7,7 @@ class TestObject < MiniTest::Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_list_create
|
def test_list_create
|
||||||
assert_equal 0 , @object.internal_object_length
|
assert_equal 1 , @object.internal_object_length
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_list_grow
|
def test_list_grow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user