]> gitweb.factorcode.org Git - factor.git/commitdiff
remove <" from multiline tests
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 23 Sep 2009 21:24:32 +0000 (16:24 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 23 Sep 2009 21:24:32 +0000 (16:24 -0500)
basis/multiline/multiline-tests.factor
basis/xml/syntax/syntax-docs.factor

index 25610ed6601bd391a5a335e81e179a7aa4ed207b..ad624dd917d1b138c6184d2b5017054b2a3f3807 100644 (file)
@@ -8,17 +8,6 @@ bar
 ;
 
 [ "foo\nbar\n" ] [ test-it ] unit-test
-[ "foo\nbar\n" ] [ <" foo
-bar
-"> ] unit-test
-
-[ "hello\nworld" ] [ <" hello
-world"> ] unit-test
-
-[ "hello" "world" ] [ <" hello"> <" world"> ] unit-test
-
-[ "\nhi" ] [ <"
-hi"> ] unit-test
 
 
 ! HEREDOC:
index d0e09663e41faf29f749f7a3c417c340c6c2d73f..3b506c0501dc6ba4863e8f521644003255b07bf0 100644 (file)
@@ -54,6 +54,7 @@ $nl
 "one two three" " " split
 [ [XML <item><-></item> XML] ] map
 <XML <doc><-></doc> XML> pprint-xml"""
+
 """<?xml version="1.0" encoding="UTF-8"?>
 <doc>
   <item>
@@ -83,6 +84,7 @@ $nl
             string=<-string->
             word=<-word-> />
     XML> pprint-xml ]"""
+
 """<?xml version="1.0" encoding="UTF-8"?>
 <x number="3" url="http://factorcode.org/" string="hello" word="drop"/>""" }
 "XML interpolation can also be used, in conjunction with " { $vocab-link "inverse" } " in pattern matching. For example:"
@@ -94,7 +96,8 @@ $nl
         { [ [XML <b val='yes'/> XML] ] [ "yes" ] }
         { [ [XML <b val=<->/> XML] ] [ "no" prepend ] }
     } switch ;
-[XML <a>pple</a> XML] dispatch write""" "apple" } ;
+[XML <a>pple</a> XML] dispatch write"""
+"apple" } ;
 
 HELP: XML-NS:
 { $syntax "XML-NS: name http://url" }