Add support for comments in the test input.
This commit is contained in:
parent
5d12d4a955
commit
025e41d91f
|
@ -32,6 +32,10 @@ main()
|
|||
|
||||
if (!strcmp(title, "EOF\n"))
|
||||
return(0);
|
||||
if (title[0] == '#' || title[0] == '\n') {
|
||||
free(title);
|
||||
continue;
|
||||
}
|
||||
|
||||
p = fgetln(stdin, &len);
|
||||
if (p == 0)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# some intial checks to make sure common things work
|
||||
--- ctime --- 1
|
||||
Tue Jan 20 23:27:46 1998
|
||||
%a %b %d %T %Y
|
||||
|
@ -7,6 +8,8 @@ Tue Jan 20 23:27:46 1998
|
|||
--- ctime --- 3
|
||||
Tue Jan 20 23:27:46 1998
|
||||
%c
|
||||
|
||||
# test some valid and invalid day names
|
||||
--- %a --- 1
|
||||
Sun
|
||||
%a
|
||||
|
@ -103,6 +106,8 @@ Saturn
|
|||
--- %A --- 16
|
||||
Moon
|
||||
%A
|
||||
|
||||
# test some valid and invalid month names
|
||||
--- %b --- 1
|
||||
Jan
|
||||
%b
|
||||
|
|
Loading…
Reference in New Issue