Sha256: 54be0dc101d29dd8bcf02454253bcce8a1994ec8bad30bc49253ce9b9f62de21

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

require 'test/unit'
require 'ontomde-core'


class TC_attr_reader < Test::Unit::TestCase
def setup
	@@model=Crdf_Repository.new
	@uns=UriNamespace.instance
end

def test_load_simple1
	t1("abcd")
end
def test_load_simple2
	t1("http://abcd")
end
def test_load_simple3
	t1("http://abcd#xyz")
end
def test_load_simple4
	t1("http://ab_cd#xyz")
end
def test_load_simple5
	t1("ab_cd")
end

def t1(uri)
	ua=@uns.urialias(uri)
	puts "!! #{uri} --> #{ua}"
	uri2=@uns.unalias(ua)
end

end

require 'test/unit/ui/console/testrunner'
Test::Unit::UI::Console::TestRunner.run(TC_attr_reader)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ontomde-core-2.0.0 test/test_uri.rb
ontomde-core-2.0.4 test/test_uri.rb
ontomde-core-2.0.5 test/test_uri.rb