File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ assert() {
44
44
_assert_expression \
45
45
" $assertion " \
46
46
" [ \$ status == 0 ]" \
47
- " $message "
47
+ " \" $message \" "
48
48
}
49
49
50
50
assert_fail () {
@@ -54,7 +54,7 @@ assert_fail() {
54
54
_assert_expression \
55
55
" $assertion " \
56
56
" [ \$ status != 0 ]" \
57
- " $message "
57
+ " \" $message \" "
58
58
}
59
59
60
60
assert_status_code () {
@@ -65,7 +65,7 @@ assert_status_code() {
65
65
_assert_expression \
66
66
" $assertion " \
67
67
" [ \$ status == $expected_status ]" \
68
- " $message expected status code $expected_status but was \$ status"
68
+ " \" $message \" expected status code $expected_status but was \$ status"
69
69
}
70
70
71
71
_assert_expression () {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ test_assert_status_code_shows_stdout_stderr_on_failure() {
102
102
message=" $( assert_status_code 1 ' echo some error message >&2; echo some ok message; echo another ok message; exit 2' | sed ' $d' ) "
103
103
assert_equals " \
104
104
FAILURE
105
- expected status code 1 but was 2
105
+ expected status code 1 but was 2
106
106
out> some ok message
107
107
out> another ok message
108
108
err> some error message" \
You can’t perform that action at this time.
0 commit comments