~ some triple quotes
authorEric Prud'hommeaux <eric@w3.org>
Fri, 02 Apr 2010 19:47:48 -0400
changeset 3 975808d93d22
parent 2 5aabe25aa953
child 4 ae121ac932f1
~ some triple quotes
src/test/scala/Test.scala
--- a/src/test/scala/Test.scala	Fri Apr 02 04:40:48 2010 -0400
+++ b/src/test/scala/Test.scala	Fri Apr 02 19:47:48 2010 -0400
@@ -9,7 +9,7 @@
 				 "city" -> (NotLinked(), SQLString()),
 				 "state" -> (NotLinked(), SQLString())),
 			     Set(Map("ID" -> Left("18"),
-				     "city" -> Left("Camrbidge"),
+				     "city" -> Left("Cambridge"),
 				     "state" -> Left("MA"))))
 
     val people = Relation("People",
@@ -22,18 +22,18 @@
 				 Map("ID" -> Left("8"),
 				     "fname" -> Left("Sue"),
 				     "addr" -> Right(☹()))))
-    val u = "http://foo.example/DB"
-    val expected =
+    val u:StemURI = "http://foo.example/DB"
+    val expected:RDFGraph =
       Set(
-	RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#ID>",LiteralObject("\"7\"^^<http://www.w3.org/2001/XMLSchema#int>")),
-	RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#fname>",LiteralObject("\"Bob\"^^<http://www.w3.org/2001/XMLSchema#string>")),
+	RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#ID>",LiteralObject(""""7"^^<http://www.w3.org/2001/XMLSchema#int>""")),
+	RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#fname>",LiteralObject(""""Bob"^^<http://www.w3.org/2001/XMLSchema#string>""")),
 	RDFTriple("<http://foo.example/DB/People/ID.7#foo>","<http://foo.example/DB/People#addr>",IRIObject("<http://foo.example/DB/Addresses/ID.18#foo>")),
-	RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#ID>",LiteralObject("\"8\"^^<http://www.w3.org/2001/XMLSchema#int>")),
+	RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#ID>",LiteralObject(""""8"^^<http://www.w3.org/2001/XMLSchema#int>""")),
 	RDFTriple("<http://foo.example/DB/People/ID.8#foo>","<http://foo.example/DB/People#fname>",LiteralObject("\"Sue\"^^<http://www.w3.org/2001/XMLSchema#string>")), 
 
-	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#ID>",LiteralObject("\"18\"^^<http://www.w3.org/2001/XMLSchema#int>")),
-	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#city>",LiteralObject("\"Camrbidge\"^^<http://www.w3.org/2001/XMLSchema#string>")),
-	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#state>",LiteralObject("\"MA\"^^<http://www.w3.org/2001/XMLSchema#string>")))
+	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#ID>",LiteralObject(""""18"^^<http://www.w3.org/2001/XMLSchema#int>""")),
+	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#city>",LiteralObject(""""Cambridge"^^<http://www.w3.org/2001/XMLSchema#string>""")),
+	RDFTriple("<http://foo.example/DB/Addresses/ID.18#foo>","<http://foo.example/DB/Addresses#state>",LiteralObject(""""MA"^^<http://www.w3.org/2001/XMLSchema#string>""")))
 
     assert (expected == relationmap(u, people) ++ relationmap(u, addresses))
   }