expansion/spec/resources_spec.cr
2019-10-10 17:35:39 +03:00

9 lines
228 B
Crystal

require "./spec_helper"
describe Game::Resources do
it "should be created from hash" do
res = Game::Resources.new({Game::Resources::Type::Crystals => 100})
res[Game::Resources::Type::Crystals].should eq 100
end
end