leapc
Loading...
Searching...
No Matches
is_leap_test.c
1
#include "
leap.h
"
2
3
#include <assert.h>
4
5
int
is_leap_test(
int
argc,
char
**argv) {
6
/*
7
* What year is leap? What year is not leap?
8
*/
9
assert(
is_leap
(0));
10
assert(!
is_leap
(1970));
11
return
0;
12
}
leap.h
Leap year function prototypes.
is_leap
bool is_leap(int year)
Determine if a year is a leap year.
Definition
leap.c:13
tests
is_leap_test.c
Generated by
1.15.0