|
2 | 2 |
|
3 | 3 | # shellcheck disable=SC2016
|
4 | 4 |
|
5 |
| -@test "expects 10 to_be 10 should succeed" { |
| 5 | +@test '`expects 10 to_be 10` should succeed' { |
6 | 6 | run expects 10 to_be 10
|
7 | 7 | [[ $status -eq 0 ]]
|
8 | 8 | }
|
9 | 9 |
|
10 |
| -@test "expects 42 to_be 10 should fail" { |
| 10 | +@test '`expects 42 to_be 10` should fail' { |
11 | 11 | run expects 42 to_be 10
|
12 | 12 | [[ $status -eq 1 ]]
|
13 | 13 | [[ $output == "FAIL: expected {actual} to_be 10, but {actual} is: 42" ]]
|
14 | 14 | }
|
15 | 15 |
|
16 |
| -@test "expects 10 not to_be 42 should succeed" { |
| 16 | +@test '`expects 10 not to_be 42` should succeed' { |
17 | 17 | run expects 10 not to_be 42
|
18 | 18 | [[ $status -eq 0 ]]
|
19 | 19 | }
|
20 | 20 |
|
21 |
| -@test "expects 10 not to_be 10 should fail" { |
| 21 | +@test '`expects 10 not to_be 10` should fail' { |
22 | 22 | run expects 10 not to_be 10
|
23 | 23 | [[ $status -eq 1 ]]
|
24 | 24 | [[ $output == "FAIL: expected {actual} not to_be 10, but {actual} is: 10" ]]
|
25 | 25 | }
|
26 | 26 |
|
27 |
| -@test "expects 5 to_be_less_than 10 should succeed" { |
| 27 | +@test '`expects 5 to_be_less_than 10` should succeed' { |
28 | 28 | run expects 5 to_be_less_than 10
|
29 | 29 | [[ $status -eq 0 ]]
|
30 | 30 | }
|
31 | 31 |
|
32 |
| -@test "expects 15 to_be_less_than 10 should fail" { |
| 32 | +@test '`expects 15 to_be_less_than 10` should fail' { |
33 | 33 | run expects 15 to_be_less_than 10
|
34 | 34 | [[ $status -eq 1 ]]
|
35 | 35 | [[ $output == "FAIL: expected {actual} to_be_less_than 10, but {actual} is: 15" ]]
|
36 | 36 | }
|
37 | 37 |
|
38 |
| -@test "expects 10 not to_be_less_than 5 should succeed" { |
| 38 | +@test '`expects 10 not to_be_less_than 5` should succeed' { |
39 | 39 | run expects 10 not to_be_less_than 5
|
40 | 40 | [[ $status -eq 0 ]]
|
41 | 41 | }
|
42 | 42 |
|
43 |
| -@test "expects 5 not to_be_less_than 10 should fail" { |
| 43 | +@test '`expects 5 not to_be_less_than 10` should fail' { |
44 | 44 | run expects 5 not to_be_less_than 10
|
45 | 45 | [[ $status -eq 1 ]]
|
46 | 46 | [[ $output == "FAIL: expected {actual} not to_be_less_than 10, but {actual} is: 5" ]]
|
47 | 47 | }
|
48 | 48 |
|
49 |
| -@test "expects 10 to_be_greater_than 5 should succeed" { |
| 49 | +@test '`expects 10 to_be_greater_than 5` should succeed' { |
50 | 50 | run expects 10 to_be_greater_than 5
|
51 | 51 | [[ $status -eq 0 ]]
|
52 | 52 | }
|
53 | 53 |
|
54 |
| -@test "expects 5 to_be_greater_than 10 should fail" { |
| 54 | +@test '`expects 5 to_be_greater_than 10` should fail' { |
55 | 55 | run expects 5 to_be_greater_than 10
|
56 | 56 | [[ $status -eq 1 ]]
|
57 | 57 | [[ $output == "FAIL: expected {actual} to_be_greater_than 10, but {actual} is: 5" ]]
|
58 | 58 | }
|
59 | 59 |
|
60 |
| -@test "expects 5 not to_be_greater_than 10 should succeed" { |
| 60 | +@test '`expects 5 not to_be_greater_than 10` should succeed' { |
61 | 61 | run expects 5 not to_be_greater_than 10
|
62 | 62 | [[ $status -eq 0 ]]
|
63 | 63 | }
|
64 | 64 |
|
65 |
| -@test "expects 10 not to_be_greater_than 5 should fail" { |
| 65 | +@test '`expects 10 not to_be_greater_than 5` should fail' { |
66 | 66 | run expects 10 not to_be_greater_than 5
|
67 | 67 | [[ $status -eq 1 ]]
|
68 | 68 | [[ $output == "FAIL: expected {actual} not to_be_greater_than 5, but {actual} is: 10" ]]
|
69 | 69 | }
|
70 | 70 |
|
71 |
| -@test "expects 10 to_equal 10 should succeed" { |
| 71 | +@test '`expects 10 to_equal 10` should succeed' { |
72 | 72 | run expects 10 to_equal 10
|
73 | 73 | [[ $status -eq 0 ]]
|
74 | 74 | }
|
75 | 75 |
|
76 |
| -@test "expects 10 to_equal 20 should fail" { |
| 76 | +@test '`expects 10 to_equal 20` should fail' { |
77 | 77 | run expects 10 to_equal 20
|
78 | 78 | [[ $status -eq 1 ]]
|
79 | 79 | [[ $output == "FAIL: expected {actual} to_equal 20, but {actual} is: 10" ]]
|
80 | 80 | }
|
81 | 81 |
|
82 |
| -@test "expects 10 not to_equal 20 should succeed" { |
| 82 | +@test '`expects 10 not to_equal 20` should succeed' { |
83 | 83 | run expects 10 not to_equal 20
|
84 | 84 | [[ $status -eq 0 ]]
|
85 | 85 | }
|
86 | 86 |
|
87 |
| -@test "expects 10 not to_equal 10 should fail" { |
| 87 | +@test '`expects 10 not to_equal 10` should fail' { |
88 | 88 | run expects 10 not to_equal 10
|
89 | 89 | [[ $status -eq 1 ]]
|
90 | 90 | [[ $output == "FAIL: expected {actual} not to_equal 10, but {actual} is: 10" ]]
|
91 | 91 | }
|
92 | 92 |
|
93 |
| -@test "expects 'hello world' to_contain 'world' should succeed" { |
| 93 | +@test '`expects "hello world" to_contain "world"` should succeed' { |
94 | 94 | run expects "hello world" to_contain "world"
|
95 | 95 | [[ $status -eq 0 ]]
|
96 | 96 | }
|
97 | 97 |
|
98 |
| -@test "expects 'hello world' to_contain 'moon' should fail" { |
| 98 | +@test '`expects "hello world" to_contain "moon"` should fail' { |
99 | 99 | run expects "hello world" to_contain "moon"
|
100 | 100 | [[ $status -eq 1 ]]
|
101 | 101 | [[ $output == "FAIL: expected {actual} to_contain moon, but {actual} is: hello world" ]]
|
102 | 102 | }
|
103 | 103 |
|
104 |
| -@test "expects 'hello' not to_contain 'xyz' should succeed" { |
| 104 | +@test '`expects "hello" not to_contain "xyz"` should succeed' { |
105 | 105 | run expects "hello" not to_contain "xyz"
|
106 | 106 | [[ $status -eq 0 ]]
|
107 | 107 | }
|
108 | 108 |
|
109 |
| -@test "expects 'hello' not to_contain 'ell' should fail" { |
| 109 | +@test '`expects "hello" not to_contain "ell"` should fail' { |
110 | 110 | run expects "hello" not to_contain "ell"
|
111 | 111 | [[ $status -eq 1 ]]
|
112 | 112 | [[ $output == "FAIL: expected {actual} not to_contain ell, but {actual} is: hello" ]]
|
113 | 113 | }
|
114 | 114 |
|
115 |
| -@test "expects 'hello123' to_match '^[a-z]+[0-9]+$' should succeed" { |
| 115 | +@test '`expects "hello123" to_match "^[a-z]+[0-9]+$"` should succeed' { |
116 | 116 | run expects "hello123" to_match "^[a-z]+[0-9]+$"
|
117 | 117 | [[ $status -eq 0 ]]
|
118 | 118 | }
|
119 | 119 |
|
120 |
| -@test "expects 'hello123' to_match '^[0-9]+$' should fail" { |
| 120 | +@test '`expects "hello123" to_match "^[0-9]+$"` should fail' { |
121 | 121 | run expects "hello123" to_match "^[0-9]+$"
|
122 | 122 | [[ $status -eq 1 ]]
|
123 | 123 | [[ $output == "FAIL: expected {actual} to_match ^[0-9]+$, but {actual} is: hello123" ]]
|
124 | 124 | }
|
125 | 125 |
|
126 |
| -@test "expects 'abc' not to_match '^[0-9]+$' should succeed" { |
| 126 | +@test '`expects "abc" not to_match "^[0-9]+$"` should succeed' { |
127 | 127 | run expects "abc" not to_match "^[0-9]+$"
|
128 | 128 | [[ $status -eq 0 ]]
|
129 | 129 | }
|
130 | 130 |
|
131 |
| -@test "expects '123' not to_match '^[0-9]+$' should fail" { |
| 131 | +@test '`expects "123" not to_match "^[0-9]+$"` should fail' { |
132 | 132 | run expects "123" not to_match "^[0-9]+$"
|
133 | 133 | [[ $status -eq 1 ]]
|
134 | 134 | [[ $output == "FAIL: expected {actual} not to_match ^[0-9]+$, but {actual} is: 123" ]]
|
135 | 135 | }
|
136 | 136 |
|
137 |
| -@test "expects true to_be_true should succeed" { |
| 137 | +@test '`expects true to_be_true` should succeed' { |
138 | 138 | run expects true to_be_true
|
139 | 139 | [[ $status -eq 0 ]]
|
140 | 140 | }
|
141 | 141 |
|
142 |
| -@test "expects false to_be_true should fail" { |
| 142 | +@test '`expects false to_be_true` should fail' { |
143 | 143 | run expects false to_be_true
|
144 | 144 | [[ $status -eq 1 ]]
|
145 | 145 | [[ $output == "FAIL: expected {actual} to_be_true, but {actual} is: false" ]]
|
146 | 146 | }
|
147 | 147 |
|
148 |
| -@test "expects false not to_be_true should succeed" { |
| 148 | +@test '`expects false not to_be_true` should succeed' { |
149 | 149 | run expects false not to_be_true
|
150 | 150 | [[ $status -eq 0 ]]
|
151 | 151 | }
|
152 | 152 |
|
153 |
| -@test "expects true not to_be_true should fail" { |
| 153 | +@test '`expects true not to_be_true` should fail' { |
154 | 154 | run expects true not to_be_true
|
155 | 155 | [[ $status -eq 1 ]]
|
156 | 156 | [[ $output == "FAIL: expected {actual} not to_be_true, but {actual} is: true" ]]
|
157 | 157 | }
|
158 | 158 |
|
159 |
| -@test "expects false to_be_false should succeed" { |
| 159 | +@test '`expects false to_be_false` should succeed' { |
160 | 160 | run expects false to_be_false
|
161 | 161 | [[ $status -eq 0 ]]
|
162 | 162 | }
|
163 | 163 |
|
164 |
| -@test "expects true to_be_false should fail" { |
| 164 | +@test '`expects true to_be_false` should fail' { |
165 | 165 | run expects true to_be_false
|
166 | 166 | [[ $status -eq 1 ]]
|
167 | 167 | [[ $output == "FAIL: expected {actual} to_be_false, but {actual} is: true" ]]
|
168 | 168 | }
|
169 | 169 |
|
170 |
| -@test "expects true not to_be_false should succeed" { |
| 170 | +@test '`expects true not to_be_false` should succeed' { |
171 | 171 | run expects true not to_be_false
|
172 | 172 | [[ $status -eq 0 ]]
|
173 | 173 | }
|
174 | 174 |
|
175 |
| -@test "expects false not to_be_false should fail" { |
| 175 | +@test '`expects false not to_be_false` should fail' { |
176 | 176 | run expects false not to_be_false
|
177 | 177 | [[ $status -eq 1 ]]
|
178 | 178 | [[ $output == "FAIL: expected {actual} not to_be_false, but {actual} is: false" ]]
|
179 | 179 | }
|
180 | 180 |
|
181 |
| -@test "expects 'value' to_be_defined should succeed" { |
| 181 | +@test '`expects "value" to_be_defined` should succeed' { |
182 | 182 | run expects "value" to_be_defined
|
183 | 183 | [[ $status -eq 0 ]]
|
184 | 184 | }
|
185 | 185 |
|
186 |
| -@test "expects '' to_be_defined should fail" { |
| 186 | +@test '`expects "" to_be_defined` should fail' { |
187 | 187 | run expects "" to_be_defined
|
188 | 188 | [[ $status -eq 1 ]]
|
189 | 189 | [[ $output == "FAIL: expected {actual} to_be_defined, but {actual} is empty" ]]
|
190 | 190 | }
|
191 | 191 |
|
192 |
| -@test "expects '' not to_be_defined should succeed" { |
| 192 | +@test '`expects "" not to_be_defined` should succeed' { |
193 | 193 | run expects "" not to_be_defined
|
194 | 194 | [[ $status -eq 0 ]]
|
195 | 195 | }
|
196 | 196 |
|
197 |
| -@test "expects 'value' not to_be_defined should fail" { |
| 197 | +@test '`expects "value" not to_be_defined` should fail' { |
198 | 198 | run expects "value" not to_be_defined
|
199 | 199 | [[ $status -eq 1 ]]
|
200 | 200 | [[ $output == "FAIL: expected {actual} not to_be_defined, but {actual} is: value" ]]
|
|
0 commit comments