Sha256: 3786ca81479372f480d49a53c1773e1d1d56c5351c76dd9572954ad31af787a7

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

# -*- coding: utf-8 -*-
require "mireru/widget/text"

class TextTest < Test::Unit::TestCase
  include MireruTestUtils

  def test_buffer_from_file_of_text
    widget = Mireru::Widget::Text.__send__(:buffer_from_file, __FILE__)
    assert_equal(GtkSource::Buffer, widget.class)
  end

  def test_buffer_from_text_of_utf8
    widget = Mireru::Widget::Text.__send__(:buffer_from_text, "御庭番")
    assert_equal(GtkSource::Buffer, widget.class)
  end

  def test_buffer_from_text_of_sjis
    widget = Mireru::Widget::Text.__send__(:buffer_from_text, "御庭番".encode("SJIS"))
    assert_equal(GtkSource::Buffer, widget.class)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mireru-0.2.1 test/widget/test-text.rb