Sha256: 220c0d4d7f59cf0b9a26ba499471e4df18b2e4c4f862d0a32578c59a3cae215d

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
require 'rbbt/util/tmpfile'
require 'rbbt/util/tc_hash'

class TestTCHash < Test::Unit::TestCase
  def test_each
    TmpFile.with_file do |f|
      t = TCHash.new f
      t["1"] = 2
      t["2"] = 3

      t.collect do |k,v| 
        ["1", "2"].include? k 
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbbt-util-1.2.1 test/rbbt/util/test_tc_hash.rb
rbbt-util-1.1.0 test/rbbt/util/test_tc_hash.rb