Sha256: 71de8962fb35cdaeb8ee915cae6babcd3f08de170fee84e401b7c2ee41f4ca49

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Spinying do
  it 'should get correct pingying for simple english' do
    Spinying.parse(:word => '南方周末').should == 'nfzm'
  end

  it 'should return english itself if english' do
    Spinying.parse(:word => 'southWeekend').should == 'southweekend'
  end

  # 繁体中文还有问题
  # it 'should return correct pingying for trandition chinese' do
  #   Spinying.parse(:word => '中華民族').should == 'zhmz'    
  # end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spinying-0.9 spec/spinying_spec.rb