-
Notifications
You must be signed in to change notification settings - Fork 1
/
example4.test
64 lines (45 loc) · 1.05 KB
/
example4.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
52
53
54
55
56
57
58
59
60
61
62
63
############################################################
# EXAMPLE USING TEMPORARY FILES
############################################################
# The program is supposed to count the characters (ignoring
# whitespaces) and the lines of the file whose name is passed as a
# command-line argument.
[.ARGS]
# The argument ".FILE" will be replaced by the name of the temporary
# file. Since this directive is placed before the first [.TEST] it is
# replicated for all the tests in the suite. Additional arguments
# could be specified with a [.ARGS] section within each individual
# test.
.FILE
############################################################
[.TEST]
Single line
[.FILE]
# Each [.FILE] directive corresponds to the content to be written to
# the temporary file.
Abc
[LINES]
1
[CHARACTERS]
3
############################################################
[.TEST]
Two lines
[.FILE]
Abc
1234
[LINES]
2
[CHARACTERS]
7
############################################################
[.TEST]
Three lines
[.FILE]
1
2
3
[LINES]
3
[CHARACTERS]
3