Sha256: ca319f459ffc5d83e4aa400069c6f5908918c4ed6b43e1d4cb1a35a27a59b95b

Contents?: true

Size: 340 Bytes

Versions: 20

Compression:

Stored size: 340 Bytes

Contents

require 'spec_helper'

RSpec.describe PragmaticSegmenter::Languages::Polish, '(pl)' do

  describe '#segment' do
    it 'correctly segments text #001' do
      ps = PragmaticSegmenter::Segmenter.new(text: "To słowo bałt. jestskrótem.", language: 'pl')
      expect(ps.segment).to eq(["To słowo bałt. jestskrótem."])
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pragmatic_segmenter-0.3.24 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.23 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.22 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.21 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.20 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.19 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.18 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.17 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.16 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.15 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.14 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.13 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.12 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.10 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.9 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.8 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.7 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.6 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.5 spec/pragmatic_segmenter/languages/polish_spec.rb
pragmatic_segmenter-0.3.4 spec/pragmatic_segmenter/languages/polish_spec.rb