Sha256: 2e4d4fdcadbc0d12641452ff29e31e916aca96ac5ff7c63c07be25fdd96c5807

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

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


class TC_attr_reader < Test::Unit::TestCase
def setup
	@@model=Crdf_Model.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

2 entries across 2 versions & 1 rubygems

Version Path
ontomde-core-1.0.4 test/test_uri.rb
ontomde-core-1.0.6 test/test_uri.rb