fix all tests for previous commit

This commit is contained in:
Torsten Ruger
2019-02-08 23:03:23 +02:00
parent 74b790250a
commit 37eeb81f45
71 changed files with 117 additions and 94 deletions

View File

@ -23,6 +23,16 @@ module Parfait
def test_get_next_object
assert_equal Parfait::Integer , @factory.get_next_object.class
end
def test_default_page
assert_equal 1024 , Factory.page_size
end
def test_default_reserve
assert_equal 10 , Factory.reserve_size
end
def test_set_page
assert_equal 10 , Factory.page_size = 10
Factory.page_size = 1024
end
def test_first_is_reserve
@factory.get_next_object
assert_equal Parfait::Integer , @factory.reserve.class

View File

@ -4,7 +4,7 @@ module Parfait
class TestEmptyWord < ParfaitTest
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
@word = Parfait::Word.new(0)
end
def test_word_create