pdf-devel
[Top][All Lists]
Advanced

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

[pdf-devel] time module test cases


From: anish patil
Subject: [pdf-devel] time module test cases
Date: Sat, 21 Jun 2008 17:53:07 +0530

Hi, 

As per our previous discussion regarding calendar spans,i wrote following test cases correct me if i wrong -

1:  If i create a time using
 
         time_span_obj.years=1;         
                                                                                                                            
         time_span_obj.months=12;                                                                                                  
                                                                                                                            
         time_span_obj.days=31;                                                                                                    
                                                                                                                            
         time_span_obj.hours=23;                                                                                                   
                                                                                                                            
         time_span_obj.minutes=59;                                                                                                 
                                                                                                                            
         time_span_obj.seconds=59;                                                                                                 
                                                                                                                            
         time_obj=pdf_time_new();
 
  And add it using pdf_time_add_cal_span() then

  Resulting  time would be 1972-02-02 01:01:00 UTC

  Am i correct?     

2: If the date is like this 1970:12:31 23:59:59  and if I add span of 1 year,12 months,31 days 23 hours,59 min ,59 seconds
   Resulting date should be 1973-02-02 01:01:59
   Am i right?   
 
3: What if i pass PDF_U32_MAX or PDF_U32_MIN to time_span_obj.years=PDF_U32_MAX  and add some time span to it , is it a valid test case?

Thanks and Regards
--
Anish Patil
reply via email to

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