-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.test
executable file
·51 lines (37 loc) · 1.29 KB
/
example.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!./pvcheck
# La The first line it is not needed. It allows to execute the test
# as if it is a script.
#######################################################################
# SIMPLE EXAMPLE (SINGLE TEST)
#######################################################################
# Tests are divided in sections with names between square brackets.
# Empty lines, and lines starting with '#' are ignored.
# Non-empty lines are compared against those produced by the program
# in the corresponding section.
[AAA]
# For integer numbers the valu is compared (05, +5 and 5 are
# equivalent).
1 2 3
4 05 +6
[BBB]
# For number with a fractional part, before the comparison the values
# produced by the program are rounded to the same number of fractional
# digits used in the definition of the test (two digits in the
# examples here below).
3.14
6.28
[CCC]
# In all the other cases the words composing the non-empty lines are
# compared.
abc
def
# The sepcial section ".SECTIONS" allows to specify additional options
# for the sections. For instance, the following line indicates that
# the order of the lines in the DDD section is not relevant. Usually
# options are declared at the beginning of the test file, or in a
# separate configuration file.
[.SECTIONS]
DDD unordered
[DDD]
one two three
four five