summaryrefslogtreecommitdiff
path: root/spec/data_structures/hash_table_spec.rb
blob: fcb085048cb5424ee1245325ddfec64bb7404687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "spec_helper"

describe HashTable do
  let(:sut) { HashTable.new }

  it "returns a default value" do
    expect(sut[:unkonwn]).to be_nil
  end

  it "can return the value associated to a key" do
    sut[:name] = 'mo'
    expect(sut[:name]).to eq('mo')
  end
end