b0VIM 7.4TX'%f:danok~dan/dev/gems/unicode-types/spec/unicode_types_spec.rbutf-8 3210#"! Utp?ad ?~V) W l 5 } w v ` 0 _ W V  ^   m [ F 5     end end end ], Unicode::Types.names Reserved Noncharacter Surrogate Private-use Control Format Graphic assert_equal %w[ it "will return a list of all types" do describe ".names" do end end assert_equal "Surrogate", Unicode::Types.type("\xED\xA0\x80") it "will work with invalid surrogate values" do end assert_equal "Reserved", Unicode::Types.type("\u{c03a6}") assert_equal "Reserved", Unicode::Types.type("\u{10c50}") it "will return Reserved for unassigned codepoints" do end assert_equal "Noncharacter", Unicode::Types.type("\u{10ffff}") it "will return Noncharacter for codepoints defined as noncharacter" do end assert_equal "Format", Unicode::Types.type("­") it "will return type for that character" do describe ".type" do end end mocked_method.verify end Unicode::Types.of("A2") Unicode::Types.stub :type, mocked_method do mocked_method.expect :call, "second type", ["2"] mocked_method.expect :call, "first type", ["A"] mocked_method = MiniTest::Mock.new it "will call .type for every character" do end assert_equal ["Control", "Graphic"], Unicode::Types.of("\tA") assert_equal ["Control", "Graphic"], Unicode::Types.of("A\t") it "will return all types sorted order" do end assert_equal ["Control", "Graphic"], Unicode::Types.of("A\tb") it "will return all types that characters in the string belong to" do end assert_equal [], Unicode::Types.of("") it "will always return an Array" do describe ".types (alias .of)" dodescribe Unicode::Types dorequire "minitest/autorun"require_relative "../lib/unicode/types"