[plt-dev] file/zip file sizes
If you fix the input, you shoul dbe able to predict the compression
precisely, right? It is deterministic!
And likely there is some simple unit test for the actual bug that Eli found.
On Fri, Mar 6, 2009 at 2:52 AM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>
> On Mar 5, 2009, at 5:42 PM, Eli Barzilay wrote:
>
>> It does have a LEVEL definition which corresponds to the compression
>> level argument for gzip, and I tried to tweak that to see what
>> happens. To my surprise, I discovered a bug that I introduced a long
>> time ago -- which made it do almost no compression (or maybe none at
>> all). But the result still had valid format so it wasn't discovered.
>
>
> It sounds to me like one could formulate a test suite for this
> program:
>
> -- create correct format
> -- compress some file by a well-known factor.
>
> Did you add this to the test suite? -- Matthias
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-dev
>