Sha256: 51d3bbaef516f2bca323b99d54a9043e0d8b4514fe8a4a1b165828cb3eadc0cd
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require 'minitest/autorun' require 'sarah' # Instance methods since 2.0,0 class TestSarah_06 < MiniTest::Unit::TestCase def setup @s = Sarah.new end def test_imethods_accessors [ :default, :default=, :default_proc, :default_proc=, :negative_mode, :negative_mode= ].each { |method| assert_respond_to @s, method } end def test_imethods_user_api [ :&, :|, :+, :concat, :-, :<<, :push, :==, :eql?, :[], :at, :[]=, :store, :append!, :assoc, :clear, :collect!, :map!, :compact!, :count, :delete_at, :delete_key, :delete_if, :delete_value, :each, :each_index, :each_key, :each_pair, :empty?, :fetch, :find_index, :index, :first, :flatten!, :has_key?, :key?, :member?, :has_value?, :include?, :value?, :insert!, :inspect, :to_s, :join, :key, :keys, :last, :length, :size, :merge!, :update, :new_similar, :pairs_at, :pop, :rehash, :replace, :reverse!, :reverse_each, :rindex, :rotate!, :sample, :select, :set, :set_kv, :set_pairs, :shift, :shuffle, :shuffle!, :slice, :slice!, :sort, :sort!, :to_a, :to_h, :uniq, :uniq!, :unset_at, :unset_key, :unset_if, :unset_value, :unshift, :values, :values_at, :zip ].each { |method| assert_respond_to @s, method } end end # END
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sarah-3.0.0 | test/06instance2.rb |
sarah-2.2.0 | test/06instance2.rb |
sarah-2.1.0 | test/06instance2.rb |
sarah-2.0.1 | test/06instance2.rb |
sarah-2.0.0 | test/06instance2.rb |