Report abuse


			
module IconvSpecs
  class Utf16Comparator
    def initialize(string)
      @string = string
    end

    def to_str
      @string
    end

    def ==(o)
      @string == o || flipped_string == o
    end

    def flipped_string
      @string.gsub(/(.)(.)/, '\2\1')
    end
  end
end