class TestDate

Date Unit Test

Date Unit Test

Public Instance Methods

setup() click to toggle source
# File test/test_date.rb, line 6
def setup
  @date = Time.new.strftime('%Y年%m月%d日 %H時%M分%S秒')
  @dates = Time.now.strftime('%Y年%m月%d日 %H時%M分%S秒')
end
teardown() click to toggle source
# File test/test_date.rb, line 33
  def teardown
# database network test add.
  end
test_date() click to toggle source
# File mini_test/mini_test_date.rb, line 8
def test_date
  assert_equal Time.new.strftime('%Y年%m月%d日 %H時%M分%S秒'), Time.now.strftime('%Y年%m月%d日 %H時%M分%S秒')
end
test_date_should_be_string() click to toggle source
# File test/test_date.rb, line 15
def test_date_should_be_string
  assert_kind_of String, @date
  assert_instance_of String, @date
end
test_date_should_be_string2() click to toggle source
# File test/test_date.rb, line 20
def test_date_should_be_string2
  assert_kind_of String, @dates
  assert_instance_of String, @dates
end
test_match() click to toggle source
# File test/test_date.rb, line 29
def test_match
  # assert_match
end
test_new() click to toggle source
# File test/test_date.rb, line 11
def test_new
  assert_equal @date, @dates
end
test_nil_variable() click to toggle source
# File test/test_date.rb, line 25
def test_nil_variable
  # assert_nil
end