1This document defines the coverage of testing for all assertions. 2 3Assertion Tested? 41 YES - Noticing interesting things in the amount of time 5 actually slept. Maybe should investigate this 6 further. 72 YES 83 YES 94 YES 105 YES 116 YES 127 YES - Decided not to test when rmtp = NULL. Seems not 13 relevant. 1410000 (bounds) YES - Made tests for a variety of boundary conditions. 15 16 17The algorithm for calculating the amount of time slept is noted below. 18[Used in 1-1.c, 2-1.c, 10000-1.c] 19 20STARTSEC, STARTNSEC = the start time, seconds and nanoseconds, respectively 21FINISHSEC, FINISHNSEC = the finish time, seconds and nanoseconds, respectively 22slepts, sleptns = amount of seconds and nanoseconds slept, respectively 23 24slepts=FINISHSEC - STARTSEC; 25sleptns=FINISHNSEC - STARTNSEC; 26if (sleptns < 0) { 27 sleptns = sleptns+1000000000; 28 slepts = slepts-1; 29} 30 31