Sha256: 8755d5b7dd9a96fc58072479febc79ad4df0411b2aa10349320287e8109c52db
Contents?: true
Size: 362 Bytes
Versions: 7
Compression:
Stored size: 362 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Numeric::UnaryMinus, '.call' do subject { object.call(value) } let(:object) { described_class } context 'when the value is positive' do let(:value) { 1 } it { should eql(-1) } end context 'when the value is negative' do let(:value) { -1 } it { should eql(1) } end end
Version data entries
7 entries across 7 versions & 2 rubygems