Sha256: 00ca2ffb3cdc2b88a6ce25addc435ed40778377c133ea78f8f3ac351c4a985e8

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'
module Alf
  module Types
    describe Size, "===" do

      it 'should recognize 0' do
        (Size === 0).should be_true
      end

      it 'should recognize any positive integer' do
        (Size === 10).should be_true
      end

      it 'should not recognize negative integers' do
        (Size === -1).should be_false
      end

      it 'should not recognize non integers' do
        (Size === 10.0).should be_false
        (Size === "12").should be_false
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-types/size/test_triple_equal.rb
alf-core-0.14.0 spec/unit/alf-types/size/test_triple_equal.rb
alf-core-0.13.1 spec/unit/alf-types/size/test_triple_equal.rb
alf-core-0.13.0 spec/unit/alf-types/size/test_triple_equal.rb