4 Comments

  1. Sameer

    How can we test static variable and static function in rtrt????

    Reply
    1. Brett_rtr

      Procedure for testing static variables or static function is same as that for any other extern class variable. Can you please describe the error that you are facing ?

      Reply
  2. Liza

    int main()
    {
    static int i;
    if(i>15)
    {
    printf(“print i=”,%d);
    }
    else{}
    }

    Can you please help me to write unit testing test cases in rtrt.
    how exactly this program works..please explain..

    Reply
    1. Vinod

      For the first time else part will be covered, since by default the value of I is zero as it is static and you need to call the function 15 times to test if part. Use for loop for calling function.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *