Re: [Factor-talk] unit tests

2007-11-06 Thread Doug Coleman
Hi, If unit-test worked like you wanted, your first unit test wouldn't test much besides does the quotation I'm testing throw an exception, because if [ 2 3 + ] somehow returned 7 it would still pass. So a better unit test would involve checking a known answer, like [ 5 ] [ 2 3 + ]

Re: [Factor-talk] unit tests

2007-11-06 Thread Samuel Tardieu
Phil == Phil Dawes [EMAIL PROTECTED] writes: Phil [ { 2 3 3 5 6 7 } ulong-array ] Phil [ { 5 3 2 6 7 3 } ulong-array natural-sort ] unit-test I forgot 1array in my previous answer: { 2 3 3 5 6 7 } ulong-array 1array [ { 5 3 2 6 7 3 } ulong-array natural-sort ] unit-test