Sha256: 65e530c7c1aa1612cd71a84a426d0735ae73965209c7adb59a099ea463ac2e6a

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

require 'spec_helper'

describe MovingsignApi::FileHandle do
  it '::handle_to_code' do
    expect(described_class.handle_to_code(0)).to eq '0'
    expect(described_class.handle_to_code(9)).to eq '9'
    expect(described_class.handle_to_code(10)).to eq 'A'
    expect(described_class.handle_to_code(35)).to eq 'Z'
  end

  it '::code_to_handle' do
    expect(described_class.code_to_handle('0')).to eq 0
    expect(described_class.code_to_handle('9')).to eq 9
    expect(described_class.code_to_handle('A')).to eq 10
    expect(described_class.code_to_handle('Z')).to eq 35
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
movingsign_api-0.0.2 spec/file_handle_spec.rb
movingsign_api-0.0.1 spec/file_handle_spec.rb