help.tutorial: use array for test output

handle-patch-and-put
Mohamed Akram 2018-08-04 17:24:39 +04:00 committed by GitHub
parent 6b97111735
commit ab53893cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ $nl
{ $unchecked-example "\"A man, a plan, a canal: Panama.\" palindrome? ." "f" }
$nl
"We would like it to output " { $link t } " there. We can encode this requirement with a unit test that we add to " { $snippet "palindrome-tests.factor" } ":"
{ $code "[ t ] [ \"A man, a plan, a canal: Panama.\" palindrome? ] unit-test" }
{ $code "{ t } [ \"A man, a plan, a canal: Panama.\" palindrome? ] unit-test" }
$nl
"If you now run unit tests, you will see a unit test failure:"
{ $code "\"palindrome\" test" }