Sha256: b4b963e74fd1ae207507e569c036e816cf3672ff55949ddd0eaacb64f08e9c21
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' describe String do describe '#valid_number?' do subject { value.valid_number? } context "valid number" do let(:value) { "0FF0" } it { should be_true } end context "invalid number" do let(:value) { "03X0" } it { should be_false } end end describe '#negation_operation?' do subject { value.negation_operation? } context "negation" do let(:value) { "~" } it { should be_true } end context "not negation" do let(:value) { "*" } it { should be_false } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
utc_rpn_calc-0.1.0 | spec/lib/core_ext/string_spec.rb |
utc_rpn_calc-0.0.1 | spec/core_ext/string_spec.rb |