class MiniUnitEncode

Encode Unit Test

Public Instance Methods

setup() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 8
def setup
  @str = '日本語文字列を確認'
  @utf8_str = @str.encode('UTF-8')
end
teardown() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 35
  def teardown
# database network test add.
  end
test_encode() click to toggle source
# File mini_test/mini_test_encode.rb, line 8
def test_encode
  @str = '日本語文字列を確認'
  assert_equal @str, @utf8_str = @str.encode('UTF-8')
end
test_match() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 31
def test_match
  # assert_match
end
test_new() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 13
def test_new
  assert_equal @str, @utf8_str
end
test_nil_variable() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 27
def test_nil_variable
  # assert_nil
end
test_up_should_be_string() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 17
def test_up_should_be_string
  assert_kind_of String, @str
  assert_instance_of String, @str
end
test_up_should_be_string2() click to toggle source
# File mini_unit/mini_unit_encode.rb, line 22
def test_up_should_be_string2
  assert_kind_of String, @utf8_str
  assert_instance_of String, @utf8_str
end