Sha256: 34e34f5c126b146ec20f4c93557909257e3bb1b4ac6f83ccc68de4d27b95a5f6

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

# coding: utf-8
require 'minitest/autorun'
require 'cppjieba_rb'

class JiebaTest < Minitest::Test
  def test_filter
    words = CppjiebaRb.filter_stop_word %w(令狐冲 是 云计算 行业 的 专家)
    assert_equal %w(令狐冲 云计算 行业 专家), words
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cppjieba_rb-0.4.2 test/test_stop_word_filter.rb
cppjieba_rb-0.4.1 test/test_stop_word_filter.rb
cppjieba_rb-0.4.0 test/test_stop_word_filter.rb
cppjieba_rb-0.3.3 test/test_stop_word_filter.rb
cppjieba_rb-0.3.1 test/test_stop_word_filter.rb
cppjieba_rb-0.3.0 test/test_stop_word_filter.rb