Sha256: 14f0dc52b4faa21152060ec071177c09067965cc7514a52fa3b62d6355945567
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
RSpec.describe 'palladius' do let(:converter) { Ting.from(:hanyu, :numbers).to(:palladius, :no_tones) } it 'should convert from Hanyu pinyin to Palladius' do expect(converter.call('you3 peng2 zi4 yuan2 fang2 lai2')).to eql 'ю пэн цзы юaнь фан лай' end it 'avoids the word for "penis"' do expect(converter.call('hui4')).to eql 'хуэй' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ting-0.12.0 | spec/palladius_spec.rb |
ting-0.11.0 | spec/palladius_spec.rb |