Sha256: ebd132bd0a414894d1c3b7b5a837d614bdb87c155bd4b7181701bf272addc903
Contents?: true
Size: 651 Bytes
Versions: 14
Compression:
Stored size: 651 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb') require 'rbbt/segment/encoding' class TestEncoding < Test::Unit::TestCase def test_bad_chars text = "A funky character ™ in a sentence." assert_equal ["™"], Segment.bad_chars(text) end def test_ascii text = "A funky character ™ in a sentence." Segment.ascii(text) do assert_equal "A funky character ? in a sentence.", text end Segment.ascii(text, "NONASCII") do assert_equal "A funky character NONASCII in a sentence.", text end assert_equal "A funky character ™ in a sentence.", text end end
Version data entries
14 entries across 14 versions & 1 rubygems