lib: Missing \ caused list of CMI files to be truncated.
[whenjobs.git] / tests / parsing / t020_simple.ml
1 (* whenjobs
2  * Copyright (C) 2012 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (* Simple when and every statements.  This is just a test of parsing,
20  * not of semantics or execution.
21  *)
22
23 every second :
24 <<
25   # nothing
26 >>
27
28 every 10 seconds :
29 <<
30   # nothing
31 >>
32
33 every 30 minutes :
34 <<
35   # nothing
36 >>
37
38 when reloaded () :
39 <<
40   # nothing
41 >>
42
43 when changes foo :
44 <<
45   # nothing
46 >>
47
48 when foo = "value" && (bar = "value") :
49 <<
50   # nothing
51 >>
52
53 when 1 = 0 :
54 <<
55   # nothing
56 >>
57
58 when false == true :
59 <<
60   # nothing
61 >>