File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ assert() {
7
7
[[ $1 = that ]] && shift
8
8
9
9
case $@ in
10
- * ' = ' * ) assert_equal $1 " ${*: 3} " ;;
10
+ * ' = ' * ) assert_equal " $1 " " ${*: 3} " ;;
11
11
' output contains ' * ) assert_output -p " ${*: 3} " ;;
12
12
' output does not contain ' * ) refute_output -p " ${*: 5} " ;;
13
13
* ) fail invalid assertion: $@
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ load assert
5
5
@test ' assert asserts equality' {
6
6
assert that 1 = 1
7
7
}
8
+ @test ' asserts equality with spaces' {
9
+ assert that ' a b' = a b
10
+ }
8
11
@test ' asserts output content' {
9
12
run echo abc
10
13
assert that output contains b
Original file line number Diff line number Diff line change 23
23
}
24
24
@test ' sanitizes xtrace' {
25
25
skip
26
- assert that ` (set -o xtrace && sanitize echo $repo )` = $' + echo $repo\n $repo'
26
+ assert that " ` (set -o xtrace && sanitize echo $repo )` " = $' + echo $repo\n $repo'
27
27
}
You can’t perform that action at this time.
0 commit comments