class TestUpDown
UpDown Unit Test
Public Instance Methods
setup()
click to toggle source
# File test/test_up_down.rb, line 5 def setup str = 'object oriented language' str2 = 'RUBY_VERSION_IS' @upup = str.upcase @upup2 = str.upcase! @downdown = str2.downcase @downdown2 = str2.downcase! end
teardown()
click to toggle source
# File test/test_up_down.rb, line 41 def teardown # database network test add. end
test_down_should_be_string()
click to toggle source
# File test/test_up_down.rb, line 26 def test_down_should_be_string assert_kind_of String, @downdown assert_kind_of String, @downdown2 assert_instance_of String, @downdown assert_instance_of String, @downdown2 end
test_match()
click to toggle source
# File test/test_up_down.rb, line 37 def test_match # assert_match end
test_new()
click to toggle source
# File test/test_up_down.rb, line 14 def test_new assert_equal @upup, @upup2 assert_equal @downdown, @downdown2 end
test_nil_variable()
click to toggle source
# File test/test_up_down.rb, line 33 def test_nil_variable # assert_nil end
test_up_should_be_string()
click to toggle source
# File test/test_up_down.rb, line 19 def test_up_should_be_string assert_kind_of String, @upup assert_instance_of String, @upup assert_kind_of String, @upup2 assert_instance_of String, @upup2 end
test_updown()
click to toggle source
# File mini_test/mini_test_updown.rb, line 8 def test_updown str = 'object oriented language' str2 = 'RUBY_VERSION_IS' @upup = str.upcase @upup2 = 'object oriented language'.upcase @downdown = str2.downcase @downdown2 = 'RUBY_VERSION_IS'.downcase assert_equal @upup, @upup2 assert_equal @downdown, @downdown2 end