]> gitweb.factorcode.org Git - factor.git/commitdiff
help.tutorial: use arrays for test output in first-program.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 27 Nov 2016 06:33:55 +0000 (22:33 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 27 Nov 2016 06:33:55 +0000 (22:33 -0800)
basis/help/tutorial/tutorial.factor

index 7d4611867b3b6edd42b66154c166d08904b44a9a..86e7969ee34aadb674cb52d482e45b286943ae1a 100644 (file)
@@ -105,8 +105,8 @@ $nl
 $nl
 "Add the following two lines to " { $snippet "palindrome-tests.factor" } ":"
 { $code
-    "[ f ] [ \"hello\" palindrome? ] unit-test"
-    "[ t ] [ \"racecar\" palindrome? ] unit-test"
+    "{ f } [ \"hello\" palindrome? ] unit-test"
+    "{ t } [ \"racecar\" palindrome? ] unit-test"
 }
 $nl
 "Now, you can run unit tests:"
@@ -115,9 +115,9 @@ $nl
 "It should report that all your tests have been run and there were no test failures, displaying the following output:"
 $nl
 { $snippet
-    "Unit Test: { [ f ] [ \"hello\" palindrome? ] }"
+    "Unit Test: { { f } [ \"hello\" palindrome? ] }"
     "\n"
-    "Unit Test: { [ t ] [ \"racecar\" palindrome? ] }"
+    "Unit Test: { { t } [ \"racecar\" palindrome? ] }"
 }
 $nl
 "Now you can read about " { $link "first-program-extend" } "." ;