-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomparisons.repl
More file actions
executable file
·51 lines (37 loc) · 878 Bytes
/
comparisons.repl
File metadata and controls
executable file
·51 lines (37 loc) · 878 Bytes
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
# this is a test file for conditions
# this file should never fail, and testResult.txt should not contain a single Failed
set a: 1
set b: 2
set test1: Failed
if a < b
set test1: Passed
set test2: Passed
if a > b
set test2: Failed
set test3: Failed
if a in [ -1000000.000 .. 9999999999 ]
set test3: Passed
set test4: Passed
if a in [ 0 .. 0.999 ]
set test4: Failed
set test5: Passed
if a in [ 1.5 .. b ]
set test5: Failed
set text: abc123efg
set test6: Failed
if 1 in text
set test6: Passed
set test7: Failed
if "ef" in text
set test7: Passed
set test8: Failed
if not "banana" in text
set test8: Passed
set regex: ^\w+$
set test9: Failed
if text matches regex
set test9: Passed
set summary: {{ test1 }} {{ test2 }} {{ test3 }} {{ test4 }} {{ test5 }} {{ test6 }} {{ test7 }} {{ test8 }} {{ test9 }}
write testRestult.txt: {{ summary }}
if "Failed" in summary
exit 1