test/xml_test.rb in iq_rdf-0.1.4 vs test/xml_test.rb in iq_rdf-0.1.5
- old
+ new
@@ -177,10 +177,11 @@
t.Foaf.lastname("Testemann", :lang => :none)
t.age(32)
t.married(false)
t.weight(65.8)
t.complex(IqRdf::Literal.new("A very complex type", :none, URI.parse("http://this.com/is#complex")))
+ t.complex2(IqRdf::Literal.new("Shorter form", :none, IqRdf::myDatatype))
t.quotes("\"I'm \\quoted\"")
t.line_breaks("I'm written\nover two lines")
t.some_literal(IqRdf::Literal.new("text", :de))
end
@@ -193,9 +194,10 @@
<foaf:lastname xml:lang="">Testemann</foaf:lastname>
<age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">32</age>
<married rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</married>
<weight rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">65.8</weight>
<complex rdf:datatype="http://this.com/is#complex" xml:lang="none">A very complex type</complex>
+ <complex2 rdf:datatype="http://www.test.de/myDatatype" xml:lang="none">Shorter form</complex2>
<quotes>"I'm \\quoted"</quotes>
<line_breaks>I'm written
over two lines</line_breaks>
<some_literal xml:lang="de">text</some_literal>
</rdf:Description>