help.tutorial: use arrays for test output in first-program.

char-rename
John Benediktsson 2016-11-26 22:33:55 -08:00
parent dadff2f062
commit 463b57f7c9
1 changed files with 4 additions and 4 deletions

View 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" } "." ;