Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated tryouts

  • Loading branch information...
commit 76c2c322ac511f3a02c970c5600e94f71b7619bd 1 parent fd4ecba
@delano authored
Showing with 5 additions and 3 deletions.
  1. +3 −1 tryouts/10_stats_tryouts.rb
  2. +2 −2 tryouts/11_selectable_tryouts.rb
View
4 tryouts/10_stats_tryouts.rb
@@ -21,7 +21,9 @@
by_sample = Benelux::Stats::Calculator.new
10.times { |i| by_sample.sample(i) }
by_sample += base
- by_merge = base.merge(base)
+ by_merge = Benelux::Stats::Calculator.new
+ by_merge.merge! base
+ by_merge.merge! base
stash :sample, by_sample
stash :merge, by_merge
by_sample == by_merge
View
4 tryouts/11_selectable_tryouts.rb
@@ -19,11 +19,11 @@ class ::TaggedItems
dream :class, SelectableArray
dream :size, 5
drill "filter returns a new instance of the same object" do
- base[:even => true]
+ base.filter(:even => true)
end
drill "[] and filter are the same", true do
- base[:even => false] == base.filter[:even => false]
+ base.filter(:even => false) == base.filter(:even => false)
end
dream :class, SelectableArray
Please sign in to comment.
Something went wrong with that request. Please try again.