Sha256: c4dca22ac9c57a2bdd9bca998df3b321bf578288606afb58e8769f0672f18a49
Contents?: true
Size: 461 Bytes
Versions: 4
Compression:
Stored size: 461 Bytes
Contents
covers 'facets/hash/data' tests Hash do unit :data do h = {:a=>1, :b=>2} h.data.a.assert == 1 h.data.b.assert == 2 h.data.c.assert == nil end unit :data do h = {:a=>1, :b=>2} h.data.c = 3 h.data.c.assert == 3 end unit :data do h = {:a=>1, :b=>2} # Note, we can't apply a functor to a functor. #h.data.assert.a? #h.data.refute.d? h.data.a?.assert == true h.data.d?.assert == false end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.1 | test/core/hash/test_data.rb |
facets-2.9.0 | test/core/hash/test_data.rb |
facets-2.9.0.pre.2 | test/core/hash/test_data.rb |
facets-2.9.0.pre.1 | test/core/hash/test_data.rb |