Sha256: 066e1927af10878650765dd09382ac3d29c49e05b2a5041cf24b9d8799778312
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
require 'lib/reddy' describe "Blank nodes" do it "should accept a custom identifier" do b = BNode.new('foo') b.identifier.should == "foo" b.to_s.should == "foo" end it "should reject custom identifiers if they are not acceptable" do b = BNode.new("4cake") b.identifier.should_not == "4cake" end it "should be expressible in N3 and NT syntax" do b = BNode.new('test') b.to_n3.should == "_:test" b.to_ntriples.should == b.to_n3 end it "should be able to determine equality" do a = BNode.new('a') a2 = BNode.new('a') a.eql?(a2).should be_true a3 = URIRef.new('http://somehost.com/wherever.xml') a.eql?(a3).should be_false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reddy-0.1.0 | spec/bnode_spec.rb |