[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] torture utils and test data files: Comment format
From: |
jemarch |
Subject: |
Re: [pdf-devel] torture utils and test data files: Comment format |
Date: |
Thu, 08 Jan 2009 23:27:10 +0100 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi Gerel.
> The current format should be currently used in every test file, but it
> would need to be extended to support an easily-parseable list of used
> data files. Can you send a proposal to the list?
BTW, I don't really want to define a very strict format, it will be tedious
to
use and to parse, I'll rather try to adapt the parser to the format already
used.
So, after reading some tests, I think the following format is fine:
/*
* Test: newline* <name> newline*
* Description: newline* <description> newline*
* Success condition[s]: newline* <cond 1> [newline+ <cond X>...] newline*
* [Data file[s]: newline* <file 1> [<file X>...] newline*]
*/
Where newline*/+ means zero/one or more new lines.
Notice that in case of success conditions the newlines are meaningful, they
separate each condition.
For data files since the name format is very strict 'TDXXXXX' we can use any
non-alphanumeric character as separator.
Summarizing, the truly important part is the beginning string "Test:" that
can
be found after any number of spaces/newlines.
Anyways, that's it.
It seems ok to me.