renamed array and hash to list and dictionary
Since these are not the ruby classes, we don’t need the old names. They are misleading. An Array is a military term, we mean list And a Hash is an implementation of a Dictionary, or LookupTable
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
require_relative "test_array"
|
||||
require_relative "test_hash"
|
||||
require_relative "test_list"
|
||||
require_relative "test_dictionary"
|
||||
|
@ -3,7 +3,7 @@ require_relative "../helper"
|
||||
class TestDictionary < MiniTest::Test
|
||||
|
||||
def setup
|
||||
@lookup = ::Parfait::Hash.new
|
||||
@lookup = ::Parfait::Dictionary.new
|
||||
end
|
||||
def test_list_create
|
||||
assert @lookup.empty?
|
@ -3,7 +3,7 @@ require_relative "../helper"
|
||||
class TestList < MiniTest::Test
|
||||
|
||||
def setup
|
||||
@list = ::Parfait::Array.new_object
|
||||
@list = ::Parfait::List.new_object
|
||||
end
|
||||
def test_list_create
|
||||
assert @list.empty?
|
Reference in New Issue
Block a user