pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] time module unit test cases


From: jemarch
Subject: Re: [pdf-devel] time module unit test cases
Date: Mon, 07 Apr 2008 18:35:38 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (powerpc-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)


Hello Anish.

   I have written some basic test cases for time module . Please find them
   attached.

Please send textual information in the body of the message and not in
an attachment. In that way it is much easier to read it :)

(An email about the test cases follows)

   I have following queries regarding time module-

   1: I read document Architecture of time module.I found following :-

      <doc>
       The pdf_time_t opaque data type represents a specific UTC date and time.
   It is a discrete point in the continuous time line. The resolution is in
   seconds.
      </doc>

      I am not able to understand it clearly. Can anybody give me example of
   type pdf_time_t?

Since it is an opaque type you (as a library user and while writing
unit tests) dont need to know how it is implemented. If you find
yourself needing to know how pdf_time_t is implemented then there is a
bug in the API.

   2: For structure struct pdf_time_cal_span_s,what is the significance of
   member pdf_u32_t sign?

       Can you please give me example of how to use it?

It is a bug in the API. That attribute doesnt make sense since a cal
time span is always positive. I have commited a patch to CVS removing
that attribute from the Reference Manual.

-- 
Jose E. Marchesi  <address@hidden>
                  <address@hidden>

GNU Spain         http://es.gnu.org
GNU Project       http://www.gnu.org




reply via email to

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