forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvalContains.test
More file actions
65 lines (40 loc) · 1014 Bytes
/
EvalContains.test
File metadata and controls
65 lines (40 loc) · 1014 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
setup " <a> contains <b> "
test "abc" contains "a"
test "abc" contains "b"
test "abc" contains "c"
test "abc" contains "A"
test "abc" contains "B"
test "abc" contains "C"
test not ("abc" contains "d")
test "abc123def" contains 123
test "abc 0.5 def" contains (1 / 2)
teardown
setup " <a> contains <b> (case sensitive)"
set the caseSensitive to true
test "abc" contains "a"
test "abc" contains "b"
test "abc" contains "c"
test not ("abc" contains "A")
test not ("abc" contains "B")
test not ("abc" contains "C")
teardown
setup " <a> is in <b> "
test "a" is in "abc"
test "b" is in "abc"
test "c" is in "abc"
test "A" is in "abc"
test "B" is in "abc"
test "C" is in "abc"
test not ("d" is in "abc")
test 123 is in "abc123def"
test (1 / 2) is in "abc 0.5 def"
teardown
setup " <a> is in <b> (case sensitive)"
set the caseSensitive to true
test "a" is in "abc"
test "b" is in "abc"
test "c" is in "abc"
test not ("A" is in "abc")
test not ("B" is in "abc")
test not ("C" is in "abc")
teardown