In Files

Parent

Included Modules

TestUri

Public Instance Methods

test_equality() click to toggle source
# File test/test_uri.rb, line 20
def test_equality()
  uri = Uri.new("http://www.rdf.com")
  uri2 = Uri.new("http://www.rdf.com")
  assert_equal(uri,uri2)
  uri = nil
  assert_not_equal(uri,uri2)
  uri2 = nil
  assert_equal(uri,uri2)
  uri = 'http://www.rdf.com'
  uri2 = Uri.new('http://www.rdf.com')
  assert_not_equal(uri,uri2)
end
test_initialize() click to toggle source
# File test/test_uri.rb, line 9
def test_initialize()
  uri = Uri.new("http://www.rdf.com")
  assert_equal('http://www.rdf.com',uri.to_s)
end
test_uri_from_uri() click to toggle source
# File test/test_uri.rb, line 14
def test_uri_from_uri()
  uri = Uri.new("http://www.rdf.com")
  uri2 = Uri.new(uri)
  assert_equal('http://www.rdf.com',uri2.to_s)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.