Sha256: f6e600a261869f3738f83fad26e20f0ed568b28bd2f9e221e764ad6d32272d49
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
# coding: utf-8 require "spec_helper" describe Tataki::Converter::SkkJisyo do let(:converter) { Tataki::Converter::SkkJisyo.new } describe ".to_kana" do shared_examples "converts_kana" do |sentence, kana| it "converts #{sentence.inspect} to #{kana.inspect}" do expect(converter.to_kana(sentence)).to eq(kana) end end include_examples "converts_kana", "", "" include_examples "converts_kana", "漢字", "かんじ" include_examples "converts_kana", "漢字変換する", "かんじへんかんする" include_examples "converts_kana", "隣りの", "となりの" include_examples "converts_kana", "隣りはよく柿食う", "となりはよくかきくう" include_examples "converts_kana", "安心安全", "あんしんあんぜん" include_examples "converts_kana", "毎朝新聞配達をしています", "まいあさしんぶんはいたつをしています" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tataki-0.0.2 | spec/tataki/converters/skk_jisyo_spec.rb |