bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Unit test case for parse_content_range()


From: Tim Rühsen
Subject: Re: [Bug-wget] Unit test case for parse_content_range()
Date: Sat, 29 Aug 2015 21:21:02 +0200
User-agent: KMail/4.14.2 (Linux/4.1.0-1-amd64; KDE/4.14.2; x86_64; ; )

Am Samstag, 29. August 2015, 23:13:23 schrieb Darshit Shah:
> I've written a unit test for the parse_content_range() method.
> However, I haven't yet populated it with various test cases.
> Sharing the patch for the unit test here. I will add more test cases
> for this test later.
> 
> Kindly do review the patch. If no one complains, I'll push it in a
> couple of days.

Hi Darshit,

some of the 'valid' tests

0-max
{ "bytes 0-1000/1000", 0, 1000, 1000}
non0-max
{ "bytes 1-1000/1000", 1, 1000, 1000}
0-valid
{ "bytes 0-500/1000", 0, 500, 1000}
non0-valid
{ "bytes 1-500/1000", 1, 500, 1000}
0-(max-1)
{ "bytes 0-999/1000", 0, 999, 1000}
non0-(max-1)
{ "bytes 1-999/1000", 1, 999, 1000}

And please add some tests using >=2^31 and >=2^32 as values.

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]