Hi Factor list,
I noticed that unit tests don't run the assertion quotation and compare
the stack. e.g. the following fails:
[ 2 3 + ]
[ 2 3 + ] unit-test
Is this by-design? If so, what's the rationale?
The reason I ask is because it's a bit awkward for testing where the
result is a type that doesn't have a convenient literal syntax. E.g. for
my ulong-array class I have use the following:
[ T{ ulong-array f
B{ 2 0 0 0 3 0 0 0 3 0 0 0 5 0 0 0 6 0 0 0 7 0 0 0 } } ]
[ { 5 3 2 6 7 3 } >ulong-array natural-sort ] unit-test
rather than the more readable:
[ { 2 3 3 5 6 7 } >ulong-array ]
[ { 5 3 2 6 7 3 } >ulong-array natural-sort ] unit-test
and I'd imagine this gets a lot more hairy for larger binary objects. Is
there a way round this?
Thanks,
Phil
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk