Sha256: 1f311ee66e8d9d167b029f05c9757492a1a0d48127ec1cbb5c2b53244d4491cf

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

describe 'Util' do
  it "pad2's correctly" do
    expect(PSD::Util.pad2(0)).to eq 0
    expect(PSD::Util.pad2(1)).to eq 2
  end
  
  # Note, this pad4 is weird but this is expected results
  it "pad4's correctly" do
    expect(PSD::Util.pad4(0)).to eq 3
    expect(PSD::Util.pad4(1)).to eq 3
    expect(PSD::Util.pad4(2)).to eq 3
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd_native/spec/util_spec.rb
psd_native-1.1.3 spec/util_spec.rb
psd_native-1.1.2 spec/util_spec.rb
psd_native-1.1.1 spec/util_spec.rb
psd_native-1.1.0 spec/util_spec.rb
psd_native-1.0.1 spec/util_spec.rb
psd_native-1.0.0 spec/util_spec.rb
psd_native-0.6.0 spec/util_spec.rb