Hey, Doug!
03.05.2016, 21:35, "Doug Coleman" :
> You want this:
> ${ five } [ five ] unit-test
That works! Thank you very much! : )
---=---
Александр
--
Find and fix application
Hey,
You're using the ${ } correctly but the $[ ] actually expands at parse-time
into just plain old ``5``. unit-test expects a quotation, but it gets ``5``
instead and fails.
You can see this by trying:
${ five } $[ five ] ! now hit enter, or ctrl-m to macro-expand things
(kind of a hack
Hello!
I don't understand something about unit-testing. Please, help me.
In a vocab I have this constant:
IN: vocab
CONSTANT: five 5
In vocab-tests I have the following test:
USING: literals tools.test vocab ;
IN: vocab.tests
${ five } $[ five ] unit-test
Why does the test fail?