Re: Probabilistic unit tests?

2013-01-12 Thread alex23
On 11 Jan, 13:34, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Well, that's not really a task for unit testing. Unit tests, like most tests, are well suited to deterministic tests, but not really to probabilistic testing. As far as I know, there aren't really any good

Re: Probabilistic unit tests?

2013-01-12 Thread Roy Smith
In article 693d4bb1-8e1e-4de0-9d4d-8a136ea70...@pp8g2000pbb.googlegroups.com, alex23 wuwe...@gmail.com wrote: On 11 Jan, 13:34, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Well, that's not really a task for unit testing. Unit tests, like most tests, are well suited to

Re: Probabilistic unit tests?

2013-01-12 Thread duncan smith
On 12/01/13 08:07, alex23 wrote: On 11 Jan, 13:34, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Well, that's not really a task for unit testing. Unit tests, like most tests, are well suited to deterministic tests, but not really to probabilistic testing. As far as I know, there

Re: Probabilistic unit tests?

2013-01-11 Thread Alister
On Thu, 10 Jan 2013 17:59:05 -0800, Nick Mellor wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to test is on average, there are the same number of males

Re: Probabilistic unit tests?

2013-01-11 Thread Steven D'Aprano
On Fri, 11 Jan 2013 16:26:20 +, Alister wrote: On Thu, 10 Jan 2013 17:59:05 -0800, Nick Mellor wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to

Re: Probabilistic unit tests?

2013-01-11 Thread duncan smith
On 11/01/13 01:59, Nick Mellor wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to test is on average, there are the same number of males and females in a

Probabilistic unit tests?

2013-01-10 Thread Nick Mellor
Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to test is on average, there are the same number of males and females in a sample, give or take 2%. Here's the unit

Re: Probabilistic unit tests?

2013-01-10 Thread Roy Smith
In article b312f3e7-5c73-486e-925e-da8343963...@googlegroups.com, Nick Mellor thebalance...@gmail.com wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to

Re: Probabilistic unit tests?

2013-01-10 Thread Steven D'Aprano
On Thu, 10 Jan 2013 17:59:05 -0800, Nick Mellor wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. Well, that's not really a task for unit testing. Unit tests, like most