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:
Torsten Ruger
2015-05-12 19:10:45 +03:00
parent a94ce51c58
commit dd41758dea
10 changed files with 21 additions and 21 deletions

View File

@ -1,2 +1,2 @@
require_relative "test_array"
require_relative "test_hash"
require_relative "test_list"
require_relative "test_dictionary"

View File

@ -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?

View File

@ -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?