Add support for comments in the test input.

This commit is contained in:
mycroft 1998-01-21 06:13:08 +00:00
parent 5d12d4a955
commit 025e41d91f
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -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