Sha256: 4dd3f92b9198d83b182189cb5c72868191b7a68430465b704c31e286b5036421

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

require 'rspec'

describe 'Dotmoji' do

  context 'Mapping' do
    it '文字列を渡すとマッピングされたデータが返ること' do
      data = Dotmoji.map_data('テスト')
      expect(data).to eq [[0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1], [0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]]
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dotmoji-0.0.2 spec/dotmoji_spec.rb
dotmoji-0.0.1 spec/dotmoji_spec.rb