IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2019, 11:57:38 AM (6 years ago)
Author:
eugene
Message:

updates to psLib tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tap_psLine.c

    r12781 r41171  
    2323    psLogSetLevel(PS_LOG_INFO);
    2424
    25     //testLineAlloc()
     25    // testLineAlloc()
    2626    {
    2727        psMemId id = psMemGetId();
    2828        psLine *lineline = NULL;
    2929        lineline = psLineAlloc(20);
    30         ok(lineline->NLINE==20, "psLine set NLINE parameter during Allocation");
    31         ok(lineline->Nline == 0, "psLine set Nline parameter during Allocation");
     30        ok(lineline->NLINE == 20, "psLine set NLINE parameter during Allocation");
     31        ok(lineline->Nline ==  0, "psLine set Nline parameter during Allocation");
    3232        strncpy(lineline->line, "Hello World", 20);
    33         ok(!strncmp(lineline->line, "Hello World", 20),
    34             "psLine was stored a simple string!");
     33        ok(!strncmp(lineline->line, "Hello World", 20), "psLine was stored a simple string!");
    3534        psFree(lineline);
    3635        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    4140        psMemId id = psMemGetId();
    4241        psLine *line = NULL;
    43         //Return false for NULL input
     42        // Return false for NULL input
    4443        int okay = !psLineInit(line);
    4544        ok(okay, "psLineInit.  Expected false for NULL psLine input");
    46         //Allocate a line and return true on Init
     45        // Allocate a line and return true on Init
    4746        line = psLineAlloc(1);
    4847        okay = psLineInit(line);
     
    6564        int okay = psLineAdd(line, "Hello %s", "World");
    6665        ok( okay, "psLineAdd.  Expected true for valid psLine input");
    67         ok(line->NLINE == 20 && line->Nline == 11,
    68             "psLineAdd failed to return the correct line parameters");
    69         ok(!strncmp(line->line, "Hello World", 20),
    70             "psLineAdd failed to store the correct line string.");
     66        ok(line->NLINE == 20 && line->Nline == 11, "psLineAdd failed to return the correct line parameters");
     67        ok(!strncmp(line->line, "Hello World", 20), "psLineAdd failed to store the correct line string.");
    7168        psFree(line);
    7269        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    7976        psLine *line = NULL;
    8077        //Return false for Null input line
    81         ok(!psMemCheckLine(line),
    82             "psMemCheckLine return false for NULL line input");
     78        ok(!psMemCheckLine(line), "psMemCheckLine return false for NULL line input");
    8379        line = psLineAlloc(1);
    84         ok(psMemCheckLine(line),
    85             "psMemCheckLine return true for valid line input");
     80        ok(psMemCheckLine(line), "psMemCheckLine return true for valid line input");
    8681        psFree(line);
    8782        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
Note: See TracChangeset for help on using the changeset viewer.