Sha256: 9598072aa705e2c11b0b9577f17f6b9b3194b33c035dce7e7d53d0e434e40d17

Contents?: true

Size: 988 Bytes

Versions: 1

Compression:

Stored size: 988 Bytes

Contents

require 'limits'

describe Limits do
  it "const" do
    expect(Limits::CHAR_BIT).to be_a_kind_of(Integer)
    expect(Limits::MB_LEN_MAX).to be_a_kind_of(Integer)
    expect(Limits::CHAR_MAX).to be_a_kind_of(Integer)
    expect(Limits::CHAR_MIN).to be_a_kind_of(Integer)
    expect(Limits::UCHAR_MAX).to be_a_kind_of(Integer)
    expect(Limits::SHRT_MAX).to be_a_kind_of(Integer)
    expect(Limits::SHRT_MIN).to be_a_kind_of(Integer)
    expect(Limits::USHRT_MAX).to be_a_kind_of(Integer)
    expect(Limits::INT_MAX).to be_a_kind_of(Integer)
    expect(Limits::INT_MIN).to be_a_kind_of(Integer)
    expect(Limits::UINT_MAX).to be_a_kind_of(Integer)
    expect(Limits::LONG_MAX).to be_a_kind_of(Integer)
    expect(Limits::LONG_MIN).to be_a_kind_of(Integer)
    expect(Limits::ULONG_MAX).to be_a_kind_of(Integer)
    expect(Limits::LLONG_MAX).to be_a_kind_of(Integer)
    expect(Limits::LLONG_MIN).to be_a_kind_of(Integer)
    expect(Limits::ULLONG_MAX).to be_a_kind_of(Integer)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
limits-1.0.0 spec/limits_spec.rb