File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 195
195
@test ' `expects "" to_be_defined` should fail' {
196
196
run expects " " to_be_defined
197
197
[[ $status -eq 1 ]]
198
- [[ $output == " FAIL: expected {actual} to_be_defined, but {actual} is empty" ]]
198
+ [[ $output == " FAIL: expected {actual} to_be_defined, but {actual} is ( empty) " ]]
199
199
}
200
200
201
201
@test ' `expects "" not to_be_defined` should succeed' {
208
208
[[ $status -eq 1 ]]
209
209
[[ $output == " FAIL: expected {actual} not to_be_defined, but {actual} is 'value'" ]]
210
210
}
211
+
212
+ @test ' `expects "" to_equal ""` should succeed' {
213
+ run expects " " to_equal " "
214
+ [[ $status -eq 0 ]]
215
+ }
216
+
217
+ @test ' `expects "" to_equal "x"` should fail' {
218
+ run expects " " to_equal " x"
219
+ [[ $status -eq 1 ]]
220
+ [[ $output == " FAIL: expected {actual} to_equal 'x', but {actual} is (empty)" ]]
221
+ }
222
+
223
+ @test ' `expects "x" to_equal ""` should fail' {
224
+ run expects " x" to_equal " "
225
+ [[ $status -eq 1 ]]
226
+ [[ $output == " FAIL: expected {actual} to_equal (empty), but {actual} is 'x'" ]]
227
+ }
You can’t perform that action at this time.
0 commit comments