Sha256: b6504711f61408e55809c75df4dd05c6853008fa90726946d0abc5c2aed8a652

Contents?: true

Size: 588 Bytes

Versions: 39

Compression:

Stored size: 588 Bytes

Contents

require 'spec_helper'

describe Galakei::EmojiTable do
  before do
    @unicode, @docomo, @softbank, @au = %w[unicode docomo softbank au].map {|s| Galakei::EmojiTable.send(s)}
  end

  it "should handle single-character unicode" do
    @unicode.black_sun_with_rays.should == "\u2600"
    @docomo.black_sun_with_rays.should == "\uE63E"
    @softbank.black_sun_with_rays.should == "\uE04A"
    @au.black_sun_with_rays.should == "\uEF60"
  end

  it "should handle multi-character unicode" do
    @unicode.hash_key.should == "\u{0023 20E3}"
    @docomo.hash_key.should == "\uE6E0"
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
galakei-0.15.2 spec/galakei/emoji_table_spec.rb
galakei-0.15.1 spec/galakei/emoji_table_spec.rb
galakei-0.15.0 spec/galakei/emoji_table_spec.rb
galakei-0.14.4 spec/galakei/emoji_table_spec.rb
galakei-0.14.3 spec/galakei/emoji_table_spec.rb
galakei-0.14.2 spec/galakei/emoji_table_spec.rb
galakei-0.14.1 spec/galakei/emoji_table_spec.rb
galakei-0.14.0 spec/galakei/emoji_table_spec.rb
galakei-0.13.7 spec/galakei/emoji_table_spec.rb
galakei-0.13.6 spec/galakei/emoji_table_spec.rb
galakei-0.13.5 spec/galakei/emoji_table_spec.rb
galakei-0.13.4 spec/galakei/emoji_table_spec.rb
galakei-0.13.3 spec/galakei/emoji_table_spec.rb
galakei-0.13.2 spec/galakei/emoji_table_spec.rb
galakei-0.13.1 spec/galakei/emoji_table_spec.rb
galakei-0.13.0 spec/galakei/emoji_table_spec.rb
galakei-0.12.1 spec/galakei/emoji_table_spec.rb
galakei-0.12.0 spec/galakei/emoji_table_spec.rb
galakei-0.11.3 spec/galakei/emoji_table_spec.rb
galakei-0.11.2 spec/galakei/emoji_table_spec.rb