~kb/sparse

ad8dd738794c753b08d03a1b8008cbefdf40375d — Kim Burgess 3 years ago 8d9abe9
Use identiy check in specs
1 files changed, 4 insertions(+), 4 deletions(-)

M spec/sparse/vector_spec.cr
M spec/sparse/vector_spec.cr => spec/sparse/vector_spec.cr +4 -4
@@ 27,8 27,8 @@ describe Sparse::Vector do
      idx, val = v1.extract_tuples
      v2 = Sparse::Vector.resize! v1, 100
      idx2, val2 = v2.extract_tuples
      idx2.object_id.should eq(idx.object_id)
      val2.object_id.should eq(val.object_id)
      idx2.should be(idx)
      val2.should be(val)
    end

    it "truncates element with indixes that exceed the new size" do


@@ 55,8 55,8 @@ describe Sparse::Vector do
      idx, val = v.extract_tuples
      v.clear
      idx2, val2 = v.extract_tuples
      idx2.object_id.should eq(idx.object_id)
      val2.object_id.should eq(val.object_id)
      idx2.should be(idx)
      val2.should be(val)
    end
  end