blob: 5c4f8d8ab86407aa834fadbd0ae157185a721706 (
plain)
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
|
require "vnd.dovecot.testsuite";
require "include";
require "variables";
global ["value1", "value2"];
set "value1" "Works";
set "value2" "fine.";
global ["value3", "value4"];
set "value3" "Yeah";
set "value4" "it does.";
include "variables-included1";
include "variables-included2";
include "variables-included3";
global "result";
test "Basic" {
if not string :is "${result}" "Works fine. Yeah it does." {
test_fail "invalid result: ${result}";
}
if string :is "${result}" "nonsense" {
test_fail "string test succeeds inappropriately";
}
}
|