libepoch/test/parsemonth.c

12 lines
227 B
C
Raw Permalink Normal View History

#include "epoch.h"
#include <assert.h>
int main() {
Month m = parseMonth("February");
assert(m == February);
m = parseMonth("nov");
assert(m == November);
m = parseMonth("MARCH");
assert(m == March);
}