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 since these arent macros)
You want this:
${ five } [ five ] unit-test
Cheers,
Doug
On Tue, May 3, 2016 at 11:30 AM, Alexander Ilin <ajs...@yandex.ru> wrote:
> 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?
>
> The above is actually a minimization. The original test failed with some
> constant tuples.
>
> ---=====---
> Александр
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk