repo.or.cz
/
factor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "lists: Add list literal doc example."
[factor.git]
/
basis
/
eval
/
eval-tests.factor
blob
bb4447b50ea17c96480f5b839bf37606c7291f5e
1
USING: eval tools.test ;
2
3
{ 4 } [ "USE: math 2 2 +" eval( -- result ) ] unit-test
4
[ "USE: math 2 2 +" eval( -- ) ] must-fail
5
{ "4\n" } [ "USING: math prettyprint ; 2 2 + ." eval>string ] unit-test