duct_tape 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -180,19 +180,19 @@ of partial matches can explode if abused in the worst case.
180
180
 
181
181
  aa = Containers::AutoassociativeArray.new
182
182
  aa << [1,2,3] << [2,3,4] << [3,4,5] #=> [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
183
- aa[1] #=> [1, 2, 3]
183
+ aa[1] #=> [[1, 2, 3]]
184
184
  aa[2] #=> [[1, 2, 3], [2, 3, 4]]
185
185
  aa[3] #=> [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
186
186
  aa[4] #=> [[2, 3, 4], [3, 4, 5]]
187
- aa[5] #=> [3, 4, 5]
187
+ aa[5] #=> [[3, 4, 5]]
188
188
  aa[2,3] #=> [[1, 2, 3], [2, 3, 4]]
189
- aa[2,3,4] #=> [2, 3, 4]
189
+ aa[2,3,4] #=> [[2, 3, 4]]
190
190
  aa[2,5] #=> []
191
191
  aa.partial_match(1,4) #=> [[2, 3, 4], [3, 4, 5]]
192
192
  aa.partial_match(1,5) #=> [[1, 2, 3], [3, 4, 5]]
193
193
  aa.partial_match(1,3,5) #=> [[1, 2, 3], [3, 4, 5]]
194
- aa.partial_match(1,4,5) #=> [3, 4, 5]
195
- aa.partial_match(2,4) #=> [2, 3, 4]
194
+ aa.partial_match(1,4,5) #=> [[3, 4, 5]]
195
+ aa.partial_match(2,4) #=> [[2, 3, 4]]
196
196
  aa.partial_match(2,5) #=> [[1, 2, 3], [2, 3, 4]]
197
197
 
198
198
  Partial matches return the set of arrays with the most matched elements from the
data/Rakefile CHANGED
@@ -15,6 +15,7 @@ Jeweler::Tasks.new do |gem|
15
15
  gem.required_ruby_version = '>= 1.8.7'
16
16
  gem.license = 'Simplified BSD'
17
17
  gem.version = VERSION_STRING
18
+ gem.files.exclude 'Gemfile.lock'
18
19
  # dependencies defined in Gemfile
19
20
  end
20
21
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/duct_tape.gemspec CHANGED
@@ -2,15 +2,14 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: duct_tape 0.2.0 ruby lib
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "duct_tape"
9
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
10
9
 
11
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
11
  s.authors = ["Tim Rodriguez"]
13
- s.date = "2014-06-21"
12
+ s.date = "2014-06-23"
14
13
  s.description = "A general-purpose utility library for Ruby"
15
14
  s.email = ["tw.rodriguez@gmail.com"]
16
15
  s.extensions = ["ext/mkrf_conf.rb"]
@@ -21,7 +20,6 @@ Gem::Specification.new do |s|
21
20
  s.files = [
22
21
  ".gitattributes",
23
22
  "Gemfile",
24
- "Gemfile.lock",
25
23
  "LICENSE",
26
24
  "README.md",
27
25
  "REQUIRED_FILES",
@@ -34,7 +32,7 @@ Gem::Specification.new do |s|
34
32
  "lib/algorithms/containers/priority_queue.rb",
35
33
  "lib/duct_tape.rb",
36
34
  "lib/duct_tape/autoassociative_array.rb",
37
- "lib/duct_tape/autoassociative_hash.rb",
35
+ "lib/duct_tape/fuzzy_hash.rb",
38
36
  "lib/ext/array.rb",
39
37
  "lib/ext/boolean.rb",
40
38
  "lib/ext/datetime.rb",
@@ -54,7 +52,7 @@ Gem::Specification.new do |s|
54
52
  "spec/algorithms/containers/heap_spec.rb",
55
53
  "spec/algorithms/containers/priority_queue_spec.rb",
56
54
  "spec/duct_tape/autoassociative_array_spec.rb",
57
- "spec/duct_tape/autoassociative_hash_spec.rb",
55
+ "spec/duct_tape/fuzzy_hash.rb",
58
56
  "spec/ext/array_spec.rb",
59
57
  "spec/ext/boolean_spec.rb",
60
58
  "spec/ext/datetime_spec.rb",
@@ -77,11 +75,11 @@ Gem::Specification.new do |s|
77
75
  s.licenses = ["Simplified BSD"]
78
76
  s.require_paths = ["lib"]
79
77
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
80
- s.rubygems_version = "2.1.11"
78
+ s.rubygems_version = "1.8.23.2"
81
79
  s.summary = "A bunch of useful patches for core Ruby classes"
82
80
 
83
81
  if s.respond_to? :specification_version then
84
- s.specification_version = 4
82
+ s.specification_version = 3
85
83
 
86
84
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
87
85
  s.add_runtime_dependency(%q<facets>, [">= 2.9.3"])
@@ -31,12 +31,11 @@ module Containers
31
31
  break
32
32
  end
33
33
  end
34
- (ret && ret.one? ? ret[0] : ret)
34
+ ret
35
35
  end
36
36
 
37
37
  def [](*args)
38
- ret = match_impl(*args)
39
- (ret && ret.one? ? ret[0] : ret)
38
+ match_impl(*args)
40
39
  end
41
40
 
42
41
  def by_column(col, key)
@@ -1,7 +1,7 @@
1
1
  module Containers
2
- class AutoassociativeHash
2
+ class FuzzyHash
3
3
  def initialize(&block)
4
- @mapping_block = block_given? ? block : nil
4
+ @mapping_proc = block_given? ? block : lambda { |key| [*key] }
5
5
  @auto_array = Containers::AutoassociativeArray.new
6
6
  @hash = {}
7
7
  @values = {}
@@ -9,13 +9,15 @@ module Containers
9
9
  end
10
10
 
11
11
  def [](key)
12
- mapped_key = @mapping_block ? @mapping_block[key] : key
12
+ mapped_key = @mapping_proc[key]
13
+ type_assert(mapped_key, Array)
13
14
  match = @auto_array.partial_match(*mapped_key)
14
- @values[match]
15
+ @values[match[0]]
15
16
  end
16
17
 
17
18
  def []=(key, val)
18
- mapped_key = @mapping_block[key]
19
+ mapped_key = @mapping_proc[key]
20
+ type_assert(mapped_key, Array)
19
21
  @hash[key] = val
20
22
  @auto_array.insert(*mapped_key)
21
23
  @values[mapped_key] = val
@@ -46,7 +48,7 @@ module Containers
46
48
  end
47
49
 
48
50
  def dup
49
- ret = self.class.new(&@mapping_block)
51
+ ret = self.class.new(&@mapping_proc)
50
52
  @hash.each { |key,val| ret[key] = val }
51
53
  ret
52
54
  end
@@ -40,7 +40,7 @@ describe Containers::AutoassociativeArray, "#partial_match" do
40
40
  it "returns the matches with the most query matches" do
41
41
  aa = Containers::AutoassociativeArray.new
42
42
  aa << [1,2,3] << [2,3,4] << [3,4,5]
43
- expect(aa.partial_match(1,4,5)).to eq([3,4,5])
43
+ expect(aa.partial_match(1,4,5)).to eq([[3,4,5]])
44
44
  end
45
45
 
46
46
  it "returns all of the matches with the most query matches" do
@@ -48,7 +48,7 @@ describe Containers::AutoassociativeArray, "#partial_match" do
48
48
  aa << [1,2,3] << [2,3,4] << [3,4,5]
49
49
  expect(aa.partial_match(1,5)).to eq([[1,2,3], [3,4,5]])
50
50
  expect(aa.partial_match(1,3,5)).to eq([[1,2,3], [3,4,5]])
51
- expect(aa.partial_match(2,4)).to eq([2,3,4])
51
+ expect(aa.partial_match(2,4)).to eq([[2,3,4]])
52
52
  end
53
53
 
54
54
  it "returns the matches with the most query matches with the most matches" do
@@ -0,0 +1,107 @@
1
+ require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
2
+
3
+ #
4
+ # Containers::FuzzyHash#initialize
5
+ #
6
+ describe Containers::FuzzyHash, "#initialize" do
7
+ pending "More tests"
8
+ end
9
+
10
+ #
11
+ # Containers::FuzzyHash#[]
12
+ #
13
+ describe Containers::FuzzyHash, "#[]" do
14
+ it "should have the method defined" do
15
+ expect(Containers::FuzzyHash.method_defined?(:[])).to be(true)
16
+ end
17
+
18
+ pending "More tests"
19
+ end
20
+
21
+ #
22
+ # Containers::FuzzyHash#[]=
23
+ #
24
+ describe Containers::FuzzyHash, "#[]=" do
25
+ it "should have the method defined" do
26
+ expect(Containers::FuzzyHash.method_defined?(:[]=)).to be(true)
27
+ end
28
+
29
+ pending "More tests"
30
+ end
31
+
32
+ #
33
+ # Containers::FuzzyHash#empty?
34
+ #
35
+ describe Containers::FuzzyHash, "#empty?" do
36
+ it "should have the method defined" do
37
+ expect(Containers::FuzzyHash.method_defined?(:empty?)).to be(true)
38
+ end
39
+
40
+ pending "More tests"
41
+ end
42
+
43
+ #
44
+ # Containers::FuzzyHash#length
45
+ #
46
+ describe Containers::FuzzyHash, "#length" do
47
+ it "should have the method defined" do
48
+ expect(Containers::FuzzyHash.method_defined?(:length)).to be(true)
49
+ end
50
+
51
+ pending "More tests"
52
+ end
53
+
54
+ #
55
+ # Containers::FuzzyHash#size
56
+ #
57
+ describe Containers::FuzzyHash, "#size" do
58
+ it "should have the method defined" do
59
+ expect(Containers::FuzzyHash.method_defined?(:size)).to be(true)
60
+ end
61
+
62
+ pending "More tests"
63
+ end
64
+
65
+ #
66
+ # Containers::FuzzyHash#clear
67
+ #
68
+ describe Containers::FuzzyHash, "#clear" do
69
+ it "should have the method defined" do
70
+ expect(Containers::FuzzyHash.method_defined?(:clear)).to be(true)
71
+ end
72
+
73
+ pending "More tests"
74
+ end
75
+
76
+ #
77
+ # Containers::FuzzyHash#inspect
78
+ #
79
+ describe Containers::FuzzyHash, "#inspect" do
80
+ it "should have the method defined" do
81
+ expect(Containers::FuzzyHash.method_defined?(:inspect)).to be(true)
82
+ end
83
+
84
+ pending "More tests"
85
+ end
86
+
87
+ #
88
+ # Containers::FuzzyHash#to_s
89
+ #
90
+ describe Containers::FuzzyHash, "#to_s" do
91
+ it "should have the method defined" do
92
+ expect(Containers::FuzzyHash.method_defined?(:to_s)).to be(true)
93
+ end
94
+
95
+ pending "More tests"
96
+ end
97
+
98
+ #
99
+ # Containers::FuzzyHash#dup
100
+ #
101
+ describe Containers::FuzzyHash, "#dup" do
102
+ it "should have the method defined" do
103
+ expect(Containers::FuzzyHash.method_defined?(:dup)).to be(true)
104
+ end
105
+
106
+ pending "More tests"
107
+ end
metadata CHANGED
@@ -1,125 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duct_tape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Tim Rodriguez
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-06-21 00:00:00.000000000 Z
12
+ date: 2014-06-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: facets
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.9.3
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.9.3
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: backports
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: bundler
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: yard
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: jeweler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rspec
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rake
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: simplecov
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  description: A general-purpose utility library for Ruby
@@ -134,7 +151,6 @@ extra_rdoc_files:
134
151
  files:
135
152
  - .gitattributes
136
153
  - Gemfile
137
- - Gemfile.lock
138
154
  - LICENSE
139
155
  - README.md
140
156
  - REQUIRED_FILES
@@ -147,7 +163,7 @@ files:
147
163
  - lib/algorithms/containers/priority_queue.rb
148
164
  - lib/duct_tape.rb
149
165
  - lib/duct_tape/autoassociative_array.rb
150
- - lib/duct_tape/autoassociative_hash.rb
166
+ - lib/duct_tape/fuzzy_hash.rb
151
167
  - lib/ext/array.rb
152
168
  - lib/ext/boolean.rb
153
169
  - lib/ext/datetime.rb
@@ -167,7 +183,7 @@ files:
167
183
  - spec/algorithms/containers/heap_spec.rb
168
184
  - spec/algorithms/containers/priority_queue_spec.rb
169
185
  - spec/duct_tape/autoassociative_array_spec.rb
170
- - spec/duct_tape/autoassociative_hash_spec.rb
186
+ - spec/duct_tape/fuzzy_hash.rb
171
187
  - spec/ext/array_spec.rb
172
188
  - spec/ext/boolean_spec.rb
173
189
  - spec/ext/datetime_spec.rb
@@ -188,25 +204,26 @@ files:
188
204
  homepage: http://github.com/twrodriguez/duct_tape
189
205
  licenses:
190
206
  - Simplified BSD
191
- metadata: {}
192
207
  post_install_message:
193
208
  rdoc_options: []
194
209
  require_paths:
195
210
  - lib
196
211
  required_ruby_version: !ruby/object:Gem::Requirement
212
+ none: false
197
213
  requirements:
198
- - - '>='
214
+ - - ! '>='
199
215
  - !ruby/object:Gem::Version
200
216
  version: 1.8.7
201
217
  required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
202
219
  requirements:
203
- - - '>='
220
+ - - ! '>='
204
221
  - !ruby/object:Gem::Version
205
222
  version: '0'
206
223
  requirements: []
207
224
  rubyforge_project:
208
- rubygems_version: 2.1.11
225
+ rubygems_version: 1.8.23.2
209
226
  signing_key:
210
- specification_version: 4
227
+ specification_version: 3
211
228
  summary: A bunch of useful patches for core Ruby classes
212
229
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 41675ecda34ca568f08df0a857ae56674e18ee95
4
- data.tar.gz: 02ffc1adfb8a907b5e7d53ac2e0c0ae19ba35e2d
5
- SHA512:
6
- metadata.gz: 45090f67f4f8e3cd03f6d6d45ad369a49232c6fb86643d1f13d9e2a61a5553d0d650b9ff5f8059a500627cdd6bc2365d2ed97cece2802164f21b8e20bcd37347
7
- data.tar.gz: e11c2a3a6680c5f965f260de31326cba18ce0eb2a9c8aac4c595018ea2651fcc6496addb6053c85418ea91d4fa47396a25b234a8bb0aeeca0f507ad69ff53a3e
data/Gemfile.lock DELETED
@@ -1,85 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.3.6)
5
- algorithms (0.6.1)
6
- backports (3.6.0)
7
- builder (3.2.2)
8
- descendants_tracker (0.0.4)
9
- thread_safe (~> 0.3, >= 0.3.1)
10
- diff-lcs (1.2.5)
11
- docile (1.1.5)
12
- facets (2.9.3)
13
- faraday (0.9.0)
14
- multipart-post (>= 1.2, < 3)
15
- git (1.2.7)
16
- github_api (0.11.3)
17
- addressable (~> 2.3)
18
- descendants_tracker (~> 0.0.1)
19
- faraday (~> 0.8, < 0.10)
20
- hashie (>= 1.2)
21
- multi_json (>= 1.7.5, < 2.0)
22
- nokogiri (~> 1.6.0)
23
- oauth2
24
- hashie (3.0.0)
25
- highline (1.6.21)
26
- jeweler (2.0.1)
27
- builder
28
- bundler (>= 1.0)
29
- git (>= 1.2.5)
30
- github_api
31
- highline (>= 1.6.15)
32
- nokogiri (>= 1.5.10)
33
- rake
34
- rdoc
35
- json (1.8.1)
36
- jwt (1.0.0)
37
- mini_portile (0.6.0)
38
- multi_json (1.10.1)
39
- multi_xml (0.5.5)
40
- multipart-post (2.0.0)
41
- nokogiri (1.6.2.1)
42
- mini_portile (= 0.6.0)
43
- oauth2 (0.9.4)
44
- faraday (>= 0.8, < 0.10)
45
- jwt (~> 1.0)
46
- multi_json (~> 1.3)
47
- multi_xml (~> 0.5)
48
- rack (~> 1.2)
49
- rack (1.5.2)
50
- rake (10.3.2)
51
- rdoc (4.1.1)
52
- json (~> 1.4)
53
- rspec (3.0.0)
54
- rspec-core (~> 3.0.0)
55
- rspec-expectations (~> 3.0.0)
56
- rspec-mocks (~> 3.0.0)
57
- rspec-core (3.0.1)
58
- rspec-support (~> 3.0.0)
59
- rspec-expectations (3.0.1)
60
- diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.0.0)
62
- rspec-mocks (3.0.1)
63
- rspec-support (~> 3.0.0)
64
- rspec-support (3.0.0)
65
- simplecov (0.8.2)
66
- docile (~> 1.1.0)
67
- multi_json
68
- simplecov-html (~> 0.8.0)
69
- simplecov-html (0.8.0)
70
- thread_safe (0.3.4)
71
- yard (0.8.7.4)
72
-
73
- PLATFORMS
74
- ruby
75
-
76
- DEPENDENCIES
77
- algorithms
78
- backports
79
- bundler
80
- facets (>= 2.9.3)
81
- jeweler
82
- rake
83
- rspec
84
- simplecov
85
- yard
@@ -1,107 +0,0 @@
1
- require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
2
-
3
- #
4
- # Containers::AutoassociativeHash#initialize
5
- #
6
- describe Containers::AutoassociativeHash, "#initialize" do
7
- pending "More tests"
8
- end
9
-
10
- #
11
- # Containers::AutoassociativeHash#[]
12
- #
13
- describe Containers::AutoassociativeHash, "#[]" do
14
- it "should have the method defined" do
15
- expect(Containers::AutoassociativeHash.method_defined?(:[])).to be(true)
16
- end
17
-
18
- pending "More tests"
19
- end
20
-
21
- #
22
- # Containers::AutoassociativeHash#[]=
23
- #
24
- describe Containers::AutoassociativeHash, "#[]=" do
25
- it "should have the method defined" do
26
- expect(Containers::AutoassociativeHash.method_defined?(:[]=)).to be(true)
27
- end
28
-
29
- pending "More tests"
30
- end
31
-
32
- #
33
- # Containers::AutoassociativeHash#empty?
34
- #
35
- describe Containers::AutoassociativeHash, "#empty?" do
36
- it "should have the method defined" do
37
- expect(Containers::AutoassociativeHash.method_defined?(:empty?)).to be(true)
38
- end
39
-
40
- pending "More tests"
41
- end
42
-
43
- #
44
- # Containers::AutoassociativeHash#length
45
- #
46
- describe Containers::AutoassociativeHash, "#length" do
47
- it "should have the method defined" do
48
- expect(Containers::AutoassociativeHash.method_defined?(:length)).to be(true)
49
- end
50
-
51
- pending "More tests"
52
- end
53
-
54
- #
55
- # Containers::AutoassociativeHash#size
56
- #
57
- describe Containers::AutoassociativeHash, "#size" do
58
- it "should have the method defined" do
59
- expect(Containers::AutoassociativeHash.method_defined?(:size)).to be(true)
60
- end
61
-
62
- pending "More tests"
63
- end
64
-
65
- #
66
- # Containers::AutoassociativeHash#clear
67
- #
68
- describe Containers::AutoassociativeHash, "#clear" do
69
- it "should have the method defined" do
70
- expect(Containers::AutoassociativeHash.method_defined?(:clear)).to be(true)
71
- end
72
-
73
- pending "More tests"
74
- end
75
-
76
- #
77
- # Containers::AutoassociativeHash#inspect
78
- #
79
- describe Containers::AutoassociativeHash, "#inspect" do
80
- it "should have the method defined" do
81
- expect(Containers::AutoassociativeHash.method_defined?(:inspect)).to be(true)
82
- end
83
-
84
- pending "More tests"
85
- end
86
-
87
- #
88
- # Containers::AutoassociativeHash#to_s
89
- #
90
- describe Containers::AutoassociativeHash, "#to_s" do
91
- it "should have the method defined" do
92
- expect(Containers::AutoassociativeHash.method_defined?(:to_s)).to be(true)
93
- end
94
-
95
- pending "More tests"
96
- end
97
-
98
- #
99
- # Containers::AutoassociativeHash#dup
100
- #
101
- describe Containers::AutoassociativeHash, "#dup" do
102
- it "should have the method defined" do
103
- expect(Containers::AutoassociativeHash.method_defined?(:dup)).to be(true)
104
- end
105
-
106
- pending "More tests"
107
- end